FP: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
m (1 revision)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
  FP(X)
  FP(<[[numeric expression]]>)


The '''FP''' [[internal function]] returns the fractional part of X.
The '''FP''' [[internal function]] returns the fractional part of X.


====Comments and Examples====
====Comments and Examples====
FP(3.1) is .1, and FP(-3.1) is -.1
 
00010 print FP(3.1)
00020 print FP(-3.1)
 
Output:
 
0.1
-0.1


====Related Functions:====
====Related Functions:====
*[[Abs]]
*[[Abs]]
*[[CEIL]]
*[[CEIL]]
Line 12: Line 20:
*[[IP]]
*[[IP]]
*[[Round]]
*[[Round]]


<noinclude>
<noinclude>
[[Category:Internal Functions]]
[[Category:Internal Functions]]
</noinclude>
</noinclude>

Latest revision as of 19:35, 21 May 2014

FP(<numeric expression>)

The FP internal function returns the fractional part of X.

Comments and Examples

00010 print FP(3.1)
00020 print FP(-3.1)

Output:

0.1
-0.1

Related Functions: