SetPrecision()

Category: Number

Syntax: SetPrecision ( expression; precision )


Parameters:

expressionAny number or expression that returns a number.

precisionAn integer from 1 to 400.

Data type returned: Number

Description:

FileMaker normally computes decimals with 16 digits of precision. The SetPrecision() function allows you to specify with up to 400 digits of precision.

The expression specified in the first parameter is rounded at the digit specified by the second parameter.

The trigonometric functions do not support extended precision.

You can specify a number below 17 as the precision, but FileMaker still returns 16 digits of precision regardless. Use the Round() function instead to specify a precision up to 16.

Examples:

Function

Results

SetPrecision(Pi;28)

Returns 3.1415926535897932384626433833.

SetPrecision(Pi;29)

Returns 3.14159265358979323846264338328.




: FileMaker Specifications

FileMaker 8 Product Line

Specifications and Storage Limits

Field Types and Import/Export Formats

: Calculation Functions

Working with Calculations Primer

Calculation Signatures

Calculation Functions

: Custom Functions

Custom Functions Primer

Useful Custom Functions

: Script Steps

Scripting Primer

Script Step Reference

: Quick Reference

FileMaker Error Codes

FileMaker Keyboard Shortcuts

FileMaker Network Ports

FileMaker Server Command Line Reference

FileMaker XML Reference

: Other Resources

Where to Go for More Information



FileMaker 8 Functions and Scripts Desk Reference
FileMaker 8 Functions and Scripts Desk Reference
ISBN: 0789735113
EAN: 2147483647
Year: 2004
Pages: 352

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net