Rapid-Q RTL Rewrite Documentation by Ben Sherratt © 2003 Rapid-Q RTL Rewrite - Maths Keywords


Maths Keywords

Rewrites of basic Rapid-Q maths functions & additions to the function set. Use $INCLUDE "RTL_Maths.inc" to use it.
Requires RTL_Maths.dll to be in your program's folder or your System folder to use.
Keywords in green are new additions to the language

RTL_Add MATH Function RTL_Maths.dll

Adds two numbers together and returns the result

Syntax: RTL_Add(numeric-expression1, numeric-expression2)
A% = RTL_Add(2,1)

Details:
Adds numeric-expression2 to numeric-expression1. In the example above A% would equal 3.


RTL_Subtract MATH Function RTL_Maths.dll

Subtracts one number from another and returns the result

Syntax: RTL_Add(numeric-expression1, numeric-expression2)
A% = RTL_Subtract(5,2)

Details:
Takes numeric-expression2 away from numeric-expression1. In the example above A% would equal 3.


RTL_Multiply MATH Function RTL_Maths.dll

Multiplies one number by another and returns the result

Syntax: RTL_Multiply(numeric-expression1, numeric-expression2)
A% = RTL_Multiply(5,2)

Details:
Multiplies numeric-expression1 by numeric-expression2. In the example above A% would equal 10.


RTL_Divide MATH Function RTL_Maths.dll

Divides one number by another and returns the result

Syntax: RTL_Divide(numeric-expression1, numeric-expression2)
A% = RTL_Divide(10,2)

Details:
Divides numeric-expression1 by numeric-expression2. In the example above A% would equal 5.


RTL_Power MATH Function RTL_Maths.dll

Raises one number to the power of another and returns the result

Syntax: RTL_Power(numeric-expression1, numeric-expression2)
A% = RTL_Power(2,5)

Details:
numeric-expression1 is raised to the power of numeric-expression2. In the example above A% would equal 32.


RTL_Abs MATH Function RTL_Maths.dll

Returns the absolute value of a number

Syntax: RTL_Abs(numeric-expression)
A% = RTL_Abs(-123)

Details:
Returns the unsigned magnitude of numeric-expression. In the example above A% would equal 123.


RTL_ACos MATH Function RTL_Maths.dll

Returns the arccosine value of a number

Syntax: RTL_ACos(numeric-expression)
A% = RTL_ACos(0.1)

Details:
Returns the arccosine of numeric-expression. In the example above A% would equal 1.47062891.


RTL_ASin MATH Function RTL_Maths.dll

Returns the arcsine value of a number

Syntax: RTL_ASin(numeric-expression)
A% = RTL_ASin(0.1)

Details:
Returns the arcsine of numeric-expression. In the example above A% would equal 0.100167421.


RTL_ATan MATH Function RTL_Maths.dll

Returns the arctangent value of a number

Syntax: RTL_ATan(numeric-expression)
A% = RTL_ATan(0.1)

Details:
Returns the arctangent of numeric-expression. In the example above A% would equal 0.0996686525.


RTL_Ceil MATH Function RTL_Maths.dll

Rounds a numeric expression up toward positive infinity

Syntax: RTL_Ceil(numeric-expression)
A% = RTL_Ceil(0.3)

Details:
Rounds up numeric-expression to the nearest whole number. In the example above A% would equal 1.


RTL_Cos MATH Function RTL_Maths.dll

Returns the cosine value of a number

Syntax: RTL_Cos(numeric-expression)
A% = RTL_Cos(0.1)

Details:
Returns the cosine of numeric-expression. In the example above A% would equal 0.995004165.


RTL_Exp MATH Function RTL_Maths.dll

Returns the exponential of a number

Syntax: RTL_Exp(numeric-expression)
A% = RTL_Exp(2)

Details:
Returns the exponential of numeric-expression. In the example above A% would equal 7.3890561.


RTL_Fix MATH Function RTL_Maths.dll

Removes the fractional part of a number

Syntax: RTL_Fix(numeric-expression)
A% = RTL_Fix(12.35)

Details:
Returns the whole number in numeric-expression. In the example above A% would equal 12.


RTL_Floor MATH Function RTL_Maths.dll

Rounds a numeric expression down toward negative infinity

Syntax: RTL_Floor(numeric-expression)
A% = RTL_Floor(0.3)

Details:
Rounds down numeric-expression to the nearest whole number. In the example above A% would equal 0.


RTL_Frac MATH Function RTL_Maths.dll

Removes the whole part of a number

Syntax: RTL_Frac(numeric-expression)
A% = RTL_Frac(12.35)

Details:
Returns the fractional number in numeric-expression. In the example above A% would equal 0.35.


RTL_Int MATH Function RTL_Maths.dll

Returns the largest integer less than or equal to a numeric-expression

Syntax: RTL_Int(numeric-expression)
A% = RTL_Int(35.4)

Details:
Returns the largest integer less than or equal to numeric-expression. In the example above A% would equal 35.


RTL_Log MATH Function RTL_Maths.dll

Returns the natural logarithm of a numeric expression

Syntax: RTL_Log(numeric-expression)
A% = RTL_Log(22)

Details:
Returns the natural logarithm of numeric-expression. In the example above A% would equal 3.09104245.


RTL_Round MATH Function RTL_Maths.dll

Converts a number to an integer by rounding the fractional part of the expression

Syntax: RTL_Round(numeric-expression)
A% = RTL_Round(3.4)
B% = RTL_Round(3.5)

Details:
Rounds up or down numeric-expression. In the example above A% would equal 3 and B% would equal 4.


RTL_Sgn MATH Function RTL_Maths.dll

Returns a number that indicates the sign of a numeric expression

Syntax: RTL_Sgn(numeric-expression)
A% = RTL_Sgn(-100)
B% = RTL_Sgn(0)
C% = RTL_Sgn(12)

Details:
Returns a number that indicates the sign of numeric-expression. In the example above A% would equal -1, B% would equal 0 and C% would equal 1.


RTL_Sin MATH Function RTL_Maths.dll

Returns the sine value of a number

Syntax: RTL_Sin(numeric-expression)
A% = RTL_Sin(0.1)

Details:
Returns the sine of numeric-expression. In the example above A% would equal 0.0998334166.


RTL_Sqr MATH Function RTL_Maths.dll

Returns the square root of a number

Syntax: RTL_Sqr(numeric-expression)
A% = RTL_Sqr(9)

Details:
Returns the square root of numeric-expression. In the example above A% would equal 3.


RTL_Tan MATH Function RTL_Maths.dll

Returns the tangent value of a number

Syntax: RTL_Tan(numeric-expression)
A% = RTL_Tan(0.1)

Details:
Returns the tangent of numeric-expression. In the example above A% would equal 0.100334672.


RTL_ATan2 MATH Function RTL_Maths.dll

Returns the arctangent value of two numbers

Syntax: RTL_ATan2(numeric-expression1, numeric-expression2)
A% = RTL_ATan2(2,1)

Details:
Returns the arctangent value of numeric-expression1 and numeric-expression2. In the example above A% would equal 1.10714872.


RTL_Cosh MATH Function RTL_Maths.dll

Returns the hyperbolic cosine value of a number

Syntax: RTL_Cosh(numeric-expression)
A% = RTL_Cosh(0.1)

Details:
Returns the hyperbolic cosine of numeric-expression. In the example above A% would equal 1.00500417.


RTL_Log10 MATH Function RTL_Maths.dll

Returns the base 10 logarithm of a numeric expression

Syntax: RTL_Log10(numeric-expression)
A% = RTL_Log10(22)

Details:
Returns the base 10 logarithm of numeric-expression. In the example above A% would equal 1.34242268.


RTL_Sinh MATH Function RTL_Maths.dll

Returns the hyperbolic sine value of a number

Syntax: RTL_Sinh(numeric-expression)
A% = RTL_Sinh(0.1)

Details:
Returns the hyperbolic sine of numeric-expression. In the example above A% would equal 0.10016675.


RTL_Tanh MATH Function RTL_Maths.dll

Returns the hyperbolic tangent value of a number

Syntax: RTL_Tanh(numeric-expression)
A% = RTL_Tanh(0.1)

Details:
Returns the hyperbolic tangent of numeric-expression. In the example above A% would equal 0.0996679946.




Prev Chapter Contents Next Chapter