EmergingEzjson.num.fixed: def of emerging-ezjson@1.3.0.0 Import: import emerging-ezjson@1.3.0.0/main.bend as EmergingEzjson Lines 96-102 of emerging-ezjson@1.3.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezjson@1.3.0.0/main.bend&start_line=96&end_line=102 import Base import emerging-ezjson@1.3.0.0/src/fixed.bend as Fixed # a number's text written with `places` decimals, rounded half to even on # its decimal digits (not through a binary float), as Python's `'%.Nf'` # writes a value whose decimal text is exact; None when the text is not a # JSON number. A `-` is kept even when the result is zero: `-0.04` to one # place is `-0.0` def num.fixed(raw: String, places: Nat) -> Maybe<&2, String>: Fixed.fixed(raw, places) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/src/fixed.bend&name=fixed