Concept Framework 2.2 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: Sun Jan 27 18:15:14 2013 GMT(c)2013 Devronium Applications