FANDOM



:fPart(value)

fPart( returns the fractional part of a number or expression.

Location Edit

  • Math
  • NUM
  • 4:fPart(

ExamplesEdit

:3.141→X
:Disp fPart(X)

This program will output .141.

fPart can also be used to perform modulo (remainder division) operations:

:Prompt(A,B
:Disp fPart(A/B)*B

This simple operation will calculate the remainder of A divided by B.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.