Convert to floating point.
floating point value.
import std.math : approxEqual; assert(approxEqual(cast(double) Decimal(123456, 0), 123456.0)); assert(approxEqual(cast(double) Decimal(123456, 3), 123.456)); assert(approxEqual(cast(double) Decimal(-123456, 3), -123.456));
See Implementation
Convert to floating point.