beautypg.com

Juniper Systems Allegro DOS Manual User Manual

Page 134

background image

Page 4-68 Windows CE

Combin(number, numberChosen) Returns the number of combinations.
Number is the number of items, numberChosen is the number of items
in each combination.
Example: Combin(10, 2) equals 45.

Cos(number) Returns the cosine of the given angle.
Example: Cos(0.5) equals 0.87758.

Cosh(number) Returns the hyperbolic cosine of a number.
Example: Cosh(5) equals 74.20995.

Degrees(number) Converts radians into degrees.
Example: Degrees(Pi()/2) equals 90.

Even(number) Returns the number rounded up to the nearest even
integer.
Example: Even(1.3) equals 2.

Exp(number) Returns e raised to the power of the number.
Example: Exp(Ln(2)) equals 2.

Fact(number) Returns the factorial of a number. The number must be
nonnegative number.
Example: Fact(5) equals 120.

Floor(number, significance) Rounds the number down, toward zero, to the
nearest multiple of the significance.
Example: Floor(3.5, 1) equals 3.

Int(number) Rounds a number down to the nearest integer. Example:
Int(1.7) equals 1.

Ln(number) Returns the natural logarithm of a number.
Example: Ln(Exp(2)) equals 2.

Log(number, base) Returns the logarithm of a number to the base you
specify. If the base is omitted, it is assumed to be 10.
Example: Log(100, 10) equals 2.

Log10(number) Returns the logarithm (base 10) of a number.
Example: Log10(100) equals 2.

Mod(number, divisor) Returns the remainder after the number is divided
by the divisor.
Example: Mod(5, 2) equals 1.

Odd(number) Returns the number rounded up to the nearest odd integer.
Example: Odd(2) equals 3.

Pi() Returns the number 3.14159265358979, the mathematical constant
PI.