-
-
Notifications
You must be signed in to change notification settings - Fork 18
frac
Vašek edited this page Jan 14, 2019
·
2 revisions
Returns the decimal part of the given value
frac(n)
Argument | Description |
---|---|
double n |
The given number |
Returns: double
This function will return fractional part of n
— that is the part behind the decimal dot.
double value;
value = frac(7.2);
This code sets value
to 0.2.
double value;
value = frac(3.025);
This code sets value
to 0.025.
Back to number_functions