round

Computes the nearest integer value, rounded away from 0.

@safe @nogc nothrow pure
T
round
(
T
)
()
if (
__traits(isFloating, T)
)

Parameters

value T

Input value

Return Value

Type: T

The nearest integer value to x.

Meta