Converts a FixedPointLike value to its string representation with fixed-point decimals.
The value to convert, which can be a bigint, string, or number.
The number of decimal places for the fixed-point representation. Default is 8.
A string representing the fixed-point value.
const str = fixedPointToString(123456789n, 8); // Outputs "1.23456789"const strFromString = fixedPointToString("1.23456789", 8); // Outputs "1.23456789"const strFromNumber = fixedPointToString(1.23456789, 8); // Outputs "1.23456789" Copy
const str = fixedPointToString(123456789n, 8); // Outputs "1.23456789"const strFromString = fixedPointToString("1.23456789", 8); // Outputs "1.23456789"const strFromNumber = fixedPointToString(1.23456789, 8); // Outputs "1.23456789"
Converts a FixedPointLike value to its string representation with fixed-point decimals.