decimal

Factory function

decimal
(
Hook = Abort
R
)
(
R r
)
if (
(
isForwardRange!R &&
isSomeChar!(ElementEncodingType!R)
&&
!isInfinite!R
)
||
isNumeric!R
)

Examples

auto d1 = decimal(5.5);
assert(d1.toString == "5.5");

auto d2 = decimal("500.555");

Meta