Converts a FixedPointLike value to a FixedPoint (bigint) 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 FixedPoint (bigint) representing the value with fixed-point decimals.
const fixedPoint = fixedPointFrom(123456789n, 8); // Outputs 123456789nconst fixedPointFromString = fixedPointFrom("1.23456789", 8); // Outputs 123456789nconst fixedPointFromNumber = fixedPointFrom(1.23456789, 8); // Outputs 123456789n Copy
const fixedPoint = fixedPointFrom(123456789n, 8); // Outputs 123456789nconst fixedPointFromString = fixedPointFrom("1.23456789", 8); // Outputs 123456789nconst fixedPointFromNumber = fixedPointFrom(1.23456789, 8); // Outputs 123456789n
Converts a FixedPointLike value to a FixedPoint (bigint) with fixed-point decimals.