FUNCTIONS CORE

GetPrec()

Return the computing precision for trigonometric functions

Syntax

Signature
GetPrec( ) --> nDecimalPlaces

Example

GetPrec.prg
PROCEDURE Main()

   Check( 'GetPrec()     ', GetPrec(), 16 )
   Check( 'SetPrec( 10 ) ', SetPrec( 10 ), "" )
   Check( 'GetPrec()     ', GetPrec(), 10 )

RETURN

STATIC PROCEDURE Check( cTitle, xResult, xExpected )

   QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )

RETURN

Output

GetPrec()     OK
SetPrec( 10 ) OK
GetPrec()     OK