
frac - fractional part of a number

Calling sequence:

frac(expr)

Parameter:

expr   --  expression

Summary:

frac(x) returns the value x - floor(x), i.e. the fractional part of x. This
is a number from the interval [0, 1[. With complex arguments frac returns
an error. if the argument cannot be evaluated to a number, frac returns the
unevaluated function call. frac is a kernel function.

>>  frac(8/3);

     2/3

>>  frac(-2.3);

     0.7000000000

>>  frac(x);

     frac(x)

See also:  ceil, floor , round , trunc

