{{getMsg('Help_YouAreHere')}}: {{page.title}} {{page.title}}

Fix

Discards every digit to the right of the y'th digit of x. Y is an optional parameter, if it is not supplied, 0 is taken, that is: Fix(x) is the same as Fix(x,0).

Usage:

Fix( x )
Fix( x, #places )

Parameters:

x A (decimal) number
#places Whole number of decimal places [OPTIONAL...default: 0].

Returns:

Numeric value

Examples:

fix( 3.8 )      //3
fix( 1.2 )      //1
fix( 4.5 )      //4
fix( 3.14, 1)   // 3.1
fix(23.112, -1) // 20.0