FRAC()

FRAC(V)

RETURNS THE FRACTIONAL VALUE OF V

  • Type: Function
  • Parameter: 1
  • Group: Mathematics

ACTION

The function FRAC(V) returns the fractional part of a number.

V can be a real or integer number, but if V is an integer, FRACT(V) is 0.

SYNTAX: Result=FRAC(V)

  • V = real or integer value.

USE

  • The function FRAC() is used to extract the fractional part of a real number.

ERROR

  • If V is not a correct expression.

EXAMPLE

print frac(3.2)

print "Result = 0.2"

SEE ALSO

INT()

MOD()