Difference between revisions of "FractionalPart Function"
From GeoGebra Manual
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.2}}</noinclude>{{betamanual|version=4.2}} | <noinclude>{{Manual Page|version=4.2}}</noinclude>{{betamanual|version=4.2}} | ||
{{function|fractionalPart}} | {{function|fractionalPart}} | ||
− | ;fractionalPart | + | ;fractionalPart( <Expression> ) :Returns the fractional part of the expression. |
{{example| 1=<div> | {{example| 1=<div> | ||
*<code><nowiki>fractionalPart( 6 / 5 )</nowiki></code> yields <math>\frac{1}{5}</math>, | *<code><nowiki>fractionalPart( 6 / 5 )</nowiki></code> yields <math>\frac{1}{5}</math>, |
Revision as of 17:37, 18 September 2012
This page is about a feature that is supported only in GeoGebra 4.2. |
- fractionalPart( <Expression> )
- Returns the fractional part of the expression.
Example:
fractionalPart( 6 / 5 )
yields \frac{1}{5},fractionalPart( 1/5 + 3/2 + 2 )
yields \frac{7}{10}.
Note: In Mathematics fractional part function is sometimes defined as x-\lfloor x\rfloor , in other cases as sgn(x)(\mid x\mid-\lfloor \mid x\mid\rfloor) . GeoGebra uses the second definition (also used by Mathematica). To obtain the first function you may use
f(x)=x-floor(x)
, see Predefined Functions and Operators.