| Concept Framework 2.2 documentation | Contents | Index |
| Name | Version | Deprecated |
| fmod | version 1.0 | no |
| number fmod(number x, number y) |
| x | [in] Any number |
| y | [in] Any number except 0 |
|
Returns the remainder (floating-point) of x / y.
If the value of y is 0, fmod returns an indefinite by default. |
import standard.C.math
class Main {
function Main() {
var w = -10.0;
var x = 3.0;
var z;
z = fmod(w, x);
echo "The remainder of " + w + " / " + x + " is " + z + "\n";
}
}
Results
The remainder of -10 / 3 is -1
|
| Documented by Simona Gabriela Plesuvu, generation time: Sun Jan 27 18:15:14 2013 GMT | (c)2013 Devronium Applications |