You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.
88
71
89
72
When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.
Before serializing, Quantity will be put in "canonical form".
99
-
This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:
100
-
a. No precision is lost
101
-
b. No fractional digits will be emitted
102
-
c. The exponent (or suffix) is as large as possible.
81
+
Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:
82
+
83
+
- No precision is lost
84
+
- No fractional digits will be emitted
85
+
- The exponent (or suffix) is as large as possible.
86
+
103
87
The sign will be omitted unless the number is negative.
0 commit comments