Casts and conversions done right

Michiel Helvensteijn m.helvensteijn.remove at gmail.com
Mon Jul 20 02:57:14 PDT 2009


Lars T. Kyllingstad wrote:

>    int i = to!int(pi);    // The to function already exists in std.conv

But what does the to function do, exactly? I'd prefer to use one of floor,
round or ceil. Wouldn't you? I'm sure they are available as well.

-- 
Michiel Helvensteijn




More information about the Digitalmars-d mailing list