FP: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
m (1 revision)
 
No edit summary
Line 4: Line 4:


====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>

Revision as of 11:24, 25 January 2012

FP(X)

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: