Skip to main content

python_decimal_str

Function python_decimal_str 

Source
pub fn python_decimal_str(d: &BigDecimal) -> String
Expand description

Python’s str(Decimal) — the to-scientific-string algorithm from the General Decimal Arithmetic spec. Needed because has_decimal checks "." in str(number) and to_ordinal_num’s base default returns the value itself, which the dispatcher then str()s.