Harbour All Functions – G

GetE
GetEnv

GetPrec

Advertisements

Harbour Math Functions

Abs

ACos

ASin

ATan

ATn2

Cos

CosH

DToR

Exp

Exponent 

Fact

Floor

GetPrec

hb_mathErBlock
hb_mathErMode
hb_mathGetErrMode
hb_mathGetHandler
hb_mathGetLastError
hb_mathIsMathErr
hb_mathResetError
hb_mathSetErrMode
hb_mathSetHandler

Infinity
Int
Log

Log10
Max

Mantissa
Min
Mod

Pi
Round

RToD

SetPrec

Sign

Sin

SinH
Sqrt

Tan

TanH

CT_GETPREC

 GETPREC()
 Determines the level of precision that is set
------------------------------------------------------------------------------
 Returns

     GETPREC() returns the level of precision currently installed for
     Clipper Tools trigonometric functions.  The value corresponds to the
     number of digits to the right of the decimal in the range of 1 to 16.

 Description

     GET PRECISION
     GETPREC() queries the currently installed precision level for Clipper
     Tools trigonometric functions.  The returned value corresponds to the
     number of digits to the right of the decimal, that are being worked
     with.  Although the default is 16, you can change this value with
     SETPREC().

 Example

     What precision has been set?

     ? GETPREC()      //  e.g. 10

See Also: SETPREC()



Tools — Mathematical Functions

Introduction Mathematical Functions
ACOS()    Computes the cosine arc
ASIN()    Computes the sine arc
ATAN()    Computes the tangent arc
ATN2()    Computes the angle size from the sine and cosine
CEILING() Rounds up to the next integer
COS()     Computes the cosine
COT()     Computes the cotangent
DTOR()    Converts from a degree to radian measure
FACT()    Computes the factorial
FLOOR()   Rounds down to the next integer
FV()      Computes future value of capital
GETPREC() Determines the level of precision that is set
LOG10()   Computes the common logarithm
PAYMENT() Computes the periodic payment amount
PERIODS() Computes number of payment periods necessary to repay a loan
PI()      Returns pi with the highest degree of accuracy
PV()      Computes the cash present value after interest charges
RATE()    Computes the interest rate for a loan
RTOD()    Converts from a radian to degree measure
SETPREC() Sets the precision level for trigonometric functions
SIGN()    Determines the mathematical sign of a number
SIN()     Computes the sine of a radian value
TAN()     Computes the tangent of a radian value