rndtonl

Deprecated. Please use round instead.

Returns x rounded to a long value using the FE_TONEAREST rounding mode. If the integer value of x is greater than long.max, the result is indeterminate.

Only works with the Digital Mars C Runtime.

deprecated("rndtonl is to be removed by 2.089. Please use round instead") extern (C)
real
rndtonl
(
real x
)

Parameters

x real

the number to round

Return Value

Type: real

x rounded to an integer value

Examples

version (CRuntime_DigitalMars)
{
    assert(rndtonl(1.0) is -real.nan);
    assert(rndtonl(1.2) is -real.nan);
    assert(rndtonl(1.7) is -real.nan);
    assert(rndtonl(1.0001) is -real.nan);
}

Meta

Suggestion Box / Bug Report