Concept Framework 1.0 documentation Contents | Index

standard.C.math.fmod

Name Version Deprecated
fmod version 1.0 no

Prototype:
number fmod(number x, number y)

Parameters:
x      [in] Any number
y      [in] Any number except 0

Description:
Returns the remainder (floating-point) of x / y.
If the value of y is 0, fmod returns an indefinite by default.

Example:
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

Returns:
Returns the remainder (floating-point) of x / y.

Documented by Simona Gabriela Plesuvu, generation time: Thu Oct 15 20:02:03 2009 GMT(c)2009 RadGs Software