html, body, form { margin: 0; padding: 0; width: 100%; } #calculate { position: relative; width: 177px; height: 110px; background: transparent url(/images/alphabox/embed_functions_inside.gif) no-repeat scroll 0 0; } #i { position: relative; left: 18px; top: 44px; width: 133px; border: 0 none; outline: 0; font-size: 11px; } #eq { width: 9px; height: 10px; background: transparent; position: absolute; top: 47px; right: 18px; cursor: pointer; }

 Floor

Definitions of the rounding and congruence functions

The rounding and congruence functions include seven basic functions. They all deal with the separation of integer or fractional parts from real and complex numbers: the floor function (entire part function) , the nearest integer function (round) , the ceiling function (least integer) , the integer part , the fractional part , the modulo function (congruence) , and the integer part of the quotient (quotient or integer division) .

The floor function (entire function) can be considered as the basic function of this group. The other six functions can be uniquely defined through the floor function.

For real , the floor function is the greatest integer less than or equal to .

For arbitrary complex , the function can be described (or defined) by the following formulas:

Examples: , , , , , ,.

For real , the rounding function is the integer closest to (if ).

For arbitrary , the round function can be described (or defined) by the following formulas:

Examples: , , , , , , , .

For real , the ceiling function is the smallest integer greater than or equal to .

For arbitrary , the function can be described (or defined) by the following formulas:

Examples: , , , , , , , .

For real , the function integer part is the integer part of .

For arbitrary , the function can be described (or defined) by the following formulas:

Examples: , , , , , , ,.

For real , the function fractional part is the fractional part of .

For arbitrary , the function can be described (or defined) by the following formulas:

Examples: , , , , , , ,.

For complex and , the mod function is the remainder of the division of by . The sign of for real , is always the same as the sign of .

The mod function can be described (or defined) by the following formula:

The functional property makes the behavior of similar to the behavior of .

Examples: , , , , , .

For complex and , the integer part of the quotient (quotient) function is the integer quotient of and .

The quotient function can be described (or defined) by the following formula:

Examples: , , , , , .