The Math Wizard's Library for BASIC Quick Reference ArcCosD# (Nr#) Returns the arc cosine of the specified number (radians; 1 >= Nr >= -1) ArcCosS! (Nr!) Returns the arc cosine of the specified number (radians; 1 >= Nr >= -1) ArcSinD# (Nr#) Returns the arc sine of the specified number (radians; 1 >= Nr >= -1) ArcSinS! (Nr!) Returns the arc sine of the specified number (radians; 1 >= Nr >= -1) BCDAbs$ (Nr$) Takes the absolute value of a BCD number. BCDAdd$ (Nr1$, Nr2$) Adds two BCD numbers. BCDCompare% (Nr1$, Nr2$) Compares two BCD numbers. Result is -1 if Nr1$ < Nr2$, 0 if equal, 1 if >. BCDCos$ (Nr$) Returns the cosine of the specified angle (in radians). BCDCot$ (Nr$) Returns the cotangent of the specified angle (in radians). BCDCsc$ (Nr$) Returns the cosecant of the specified angle (in radians). BCDDeg2Rad$ (Nr$) Converts an angle from degrees to in radians. BCDDiv$ (Nr1$, Nr2$) Divides the 1st BCD number by the 2nd. Returns "" if 2nd number is zero. BCDe$ The constant "e" (base of the natural logarithms). BCDFact$ (NumInt%) Calculates the factorial of the specified integer. BCDFormat$ (Nr$, HowToFormat%, RightDigits%) Converts a BCD number to a numeric string in the desired format. BCDGetSize LeftDigits%, RightDigits% Gets the maximum size of a BCD number. BCDMul$ (Nr1$, Nr2$) Multiplies two BCD numbers. BCDpi$ The constant "pi". BCDRad2Deg$ (Nr$) Converts an angle from in radians to degrees. BCDSec$ (Nr$) Returns the secant of the specified angle (in radians). BCDSet$ (NumSt$) Converts a numeric string into a BCD number. BCDSetSize LeftDigits%, RightDigits% Sets the maximum size of a BCD number. The left side must be at least 2. BCDSgn% (Nr$) BCD signum: returns -1 if number is negative, 0 if 0, 1 if positive. BCDSin$ (Nr$) Returns the sine of the specified angle (in radians). BCDSqr$ (Nr$) Returns the square root of the specified number. BCDSub$ (Nr1$, Nr2$) Subtracts the second BCD number from the first BCD number. BCDTan$ (Nr$) Returns the tangent of the specified angle (in radians). Cent2Fahr! (Nr!) Converts centigrade (Celsius) to Fahrenheit. CosHD# (Nr#) Returns the hyperbolic cosine of the specified angle. CosHS! (Nr!) Returns the hyperbolic cosine of the specified angle. CotD# (Nr#) Returns the cotangent of the specified angle (in radians). CotS! (Nr!) Returns the cotangent of the specified angle (in radians). CscD# (Nr#) Returns the cosecant of the specified angle (in radians). CscS! (Nr!) Returns the cosecant of the specified angle (in radians). Deg2RadD# (Nr#) Converts from degrees to radians. Deg2RadS! (Nr!) Converts from degrees to radians. ED# The constant "e" (base of the natural logarithms). ErfD# (Nr#) Returns the error function of the specified number. ErfS! (Nr!) Returns the error function of the specified number. ES! The constant "e" (base of the natural logarithms). FactD# (Num%) Calculates the factorial of the specified integer. FactS! (Num%) Calculates the factorial of the specified integer. Fahr2Cent! (Nr!) Converts Fahrenheit to centigrade (Celsius). FracAbs$ (Nr$) Returns the absolute value of a fraction. FracAdd$ (Nr1$, Nr2$) Adds two fractions. FracCompare% (Nr1$, Nr2$) Compares two fractions. Result is -1 if Nr1$ < Nr2$, 0 if equal, 1 if >. FracDiv$ (Nr1$, Nr2$) Divides the first fraction by the second. FracFormat$ (Nr$, HowToFormat%, RightDigits%) Converts a fraction to a numeric string in the desired format. FracMul$ (Nr1$, Nr2$) Multiplies two fractions. FracNeg$ (Nr$) Negates a fraction. FracSet$ (NumSt$) Converts a numeric string into a fraction. FracSgn% (Nr$) Fraction signum: returns -1 if number is negative, 0 if 0, 1 if positive. FracSub$ (Nr1$, Nr2$) Subtracts the second fraction from the first. GCDI% (Nr1%, Nr2%) Returns the greatest common denominator of the two numbers. GCDL& (Nr1&, Nr2&) Returns the greatest common denominator of the two numbers. Kg2Pound! (Nr!) Converts kilograms to pounds. PiD# The constant "pi". PiS! The constant "pi". Pound2Kg! (Nr!) Converts pounds to kilograms. Power2I% (Nr%) Returns the specified power of two as an integer. Power2L& (Nr%) Returns the specified power of two as a long integer. Rad2DegD# (Nr#) Converts from radians to degrees. Rad2DegS! (Nr!) Converts from radians to degrees. SecD# (Nr#) Returns the secant of the specified angle (in radians). SecS! (Nr!) Returns the secant of the specified angle (in radians). SinHD# (Nr#) Returns the hyperbolic sine of the specified angle. SinHS! (Nr!) Returns the hyperbolic sine of the specified angle. TanHD# (Nr#) Returns the hyperbolic tangent of the specified angle. TanHS! (Nr!) Returns the hyperbolic tangent of the specified angle.