price number.
assert(Decimal.from(123.456, 3) == Decimal(123456, 3)); assert(Decimal.from(123.001, 3) == Decimal(123001, 3)); assert(Decimal.from(123.0019, 3) == Decimal(123002, 3)); assert(Decimal.from(-123.456, 3) == Decimal(-123456, 3)); assert(Decimal.from(-123.001, 3) == Decimal(-123001, 3)); assert(Decimal.from(-123.0019, 3) == Decimal(-123002, 3));
Convert from floating point.