Limited Complex Calculations Available for Use (Enterprise)

Follow

naturalForms allows simple expressions and summation calculations, but in general does not support complex calculations (i.e. Count, If Then Else, etc). We have made a select number of complex calculations available for use. See below for details on how to use these.

Math Namespace

Method

Returns 

Description 

nfapi.math.RoundNearest(n,d)                       

Number         

Returns a value rounded to the nearest number. 5-9 round up, 0-4 round down.

n is the number to round.

d is the number of decimal places to use in rounding; optional with a default of 0.

nfapi.math.RoundEven(n,d) 

Number

Returns a value rounded to the nearest even number. Also known as bankers' rounding.

n is the number to round.

d is the number of decimal places to use in rounding; optional with a default of 0.

nfapi.math.RoundUp(n,d)

Number

Returns a value rounded to the next higher number.

n is the number to round.

d is the number of decimal places to use in rounding; optional with a default of 0.

nfapi.math.RoundDown(n,d)

Number

Returns a value rounded to the next lower number.

n is the number to round.

d is the number of decimal places to use in rounding; optional with a default of 0.


Field Namespace

Method

Returns

Description 

nfapi.field.IsEmpty(value)

Boolean

Returns true if the passed-in field value contains a value; otherwise the return value will be false.

value is the field value.

Note: This function should not be used to test whether or not a checkbox field is in a checked state.

 

Have more questions? Submit a request

Comments

Powered by Zendesk