floating point conversion
Famous via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jun 1 07:52:11 PDT 2014
float a = 1.234f;
float b = to!float("1.234");
assert (a == b);
assert (a == to!float("1.234")); // is allowed to fail due to
constant folding
More information about the Digitalmars-d-learn
mailing list