trunc

fnreal trunc(real x) @trusted nothrow @nogc pure

Returns the integer portion of x, dropping the fractional portion. This is also known as "chop" rounding. pure on all platforms.