How to test if a double has no fraction part

rumbu via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 3 04:47:42 PDT 2015


On Thursday, 3 September 2015 at 10:52:39 UTC, Namal wrote:
> Hello,
>
> is there a modf function like in C++ or something similar which 
> could help me find out if a double has a fractional part or not.
>
> Thx

http://dlang.org/phobos/std_math.html#.modf




More information about the Digitalmars-d-learn mailing list