Convert this value to floating-point. This always succeeds, although some loss of precision may occur if M.sizeof <= N.sizeof.
import checkedint.throws : SmartInt; // use IntFlagPolicy.throws SmartInt!int n = 92; auto f = cast(double)n; static assert(is(typeof(f) == double)); assert(f == 92.0);
See Implementation
Convert this value to floating-point. This always succeeds, although some loss of precision may occur if M.sizeof <= N.sizeof.