MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / to_sci_string

Method to_sci_string

tools/python-3.11.9-amd64/Lib/_pydecimal.py:5558–5564  ·  view source on GitHub ↗

Converts a number to a string, using scientific notation. The operation is not affected by the context.

(self, a)

Source from the content-addressed store, hash-verified

5556 return a.to_eng_string(context=self)
5557
5558 def to_sci_string(self, a):
5559 """Converts a number to a string, using scientific notation.
5560
5561 The operation is not affected by the context.
5562 """
5563 a = _convert_other(a, raiseit=True)
5564 return a.__str__(context=self)
5565
5566 def to_integral_exact(self, a):
5567 """Rounds to an integer.

Callers

nothing calls this directly

Calls 2

_convert_otherFunction · 0.85
__str__Method · 0.45

Tested by

no test coverage detected