import mir.math.constant: PI; Decimal!2 decimal = "3.141592653589793378e-40"; // constructor assert(cast(double) decimal == double(PI) / 1e40);
See Implementation