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 castingfloat(int(a)), but preserves the negative sign whenxis in the range [-0.0, -1.0). Equivalent tonumpy.truncandnumpy.fix().