warp.trunc#

warp.trunc(x: Float) Float#
  • Kernel

Return the nearest integer that is closer to zero than x.

In other words, it discards the fractional part of x. It is similar to casting float(int(a)), but preserves the negative sign when x is in the range [-0.0, -1.0). Equivalent to numpy.trunc and numpy.fix().