1999 for "19.99" at scale 2).long parseDecimalCoeff(scope const(char)[] text, ubyte scale) @safeParses a decimal string into a coefficient at the given scale. Exact: trailing digits beyond scale that are nonzero throw.
text | the decimal text (e.g. "19.99") |
scale | the target fraction digits |
1999 for "19.99" at scale 2).or overflow.