trunc

Computes the nearest integer value lower in magnitude than the given value.

@safe @nogc nothrow pure pragma(inline, true)
T
trunc
(
T
)
(
T x
)
if (
__traits(isFloating, T)
)

Parameters

x T

The value

Return Value

Type: T

The nearest integer value lower in magnitude than x.

Meta