## Mathematical Functions

**math**.trunc (x) ¶ Return x with the fractional part removed, leaving the integer part. This rounds toward 0: trunc() is equivalent to floor() for positive x, and equivalent to ceil() for negative x.If x is not a float, delegates to x.__trunc__, which should return an Integral value, **math**.ulp (x) ¶ Return the value of the least significant bit of the float x:. If x is a NaN (not a.