Mathematical rounding

via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 15 22:57:32 PDT 2014


On Thursday, 16 October 2014 at 03:11:57 UTC, Elena wrote:
> Hi,every one!
> How can I realize mathematical rounding (not banking) for

Never used it, but:

http://dlang.org/library/std/math/FloatingPointControl.html

phobos/math.d lists the enums:

roundToNearest, roundDown, roundUp, roundToZero


More information about the Digitalmars-d mailing list