toPlainDecimalString
toPlainDecimalString(
value,fractionSeparator):string
Defined in: projects/ngx-signal-schema/src/lib/validators/decimal-parser.ts:18
Converts a number into a plain decimal string without scientific notation.
Parameters
Section titled “Parameters”string | number
The numeric value to convert.
fractionSeparator
Section titled “fractionSeparator”string
The decimal separator to use in the output string.
Returns
Section titled “Returns”string
A plain string representation of the number.
Examples
Section titled “Examples”toPlainDecimalString(12.34, "."); // returns "12.34"toPlainDecimalString(1e-7, "."); // returns "0.0000001"
This makes it possible to count integer and fraction digits reliably.