frac( x )

The fractional part of x in SageMath. Not defined for complex numbers.

Plot on the real axis:

Examples:

Related functions:   floor   ceil

Function category: basic functions sagemath-docs