The document describes math functions to truncate, round or otherwise transform numbers.

Algebraic: ++round(value; places)++

RPN: ++value [ENT] places [round] ++

Returns the result rounded to the designated places following the standard rounding rules: 0 to 4 rounds down while 5 through 9 rounds up. This function can either round to the 1st through 10th decimal place by setting 'places' equal to 1 through 10 or to a whole number of places by setting 'places' equal to 0 through -10.

** Details**

- 'value' should be a real number

- 'places' must be a whole number in the range -10 to 10; real numbers will be truncated

- 'places' outside this range will return a "Parameter out of range" calculation error

**Algebraic Examples**

**RPN Examples**

<1234.56 [ENT] 1 [round] displays 1,234.6>

<1234.56 [ENT] -2 [round] displays 1,200>

++round(value)++ : 'value' rounded to 0 decimal places

++round(value; places)++ : 'value' rounded to whole or decimal 'places'

Returns the result rounded to the designated places following the standard rounding rules: 0 to 4 rounds down while 5 through 9 rounds up. This function can either round to the 1st through 10th decimal place by setting 'places' equal to 1 through 10 or to a whole number of places by setting 'places' equal to 0 through -10.

__Because the value returned has been changed, this function can make solving impossible when used in templates. It is best to use these functions when directly computing results. See [https://.../t/help_equations|Incorporating Multiple Equations, Solving and How Calculating Works] sections.__

**Details**

- 'value' can either be a number or table where the same is returned

- 'places' must be a whole number in the range -10 to 10; real numbers will be truncated

- 'places' outside this range will return a "Parameter out of range" calculation error

**Examples**

Algebraic: ++floor(value; places)++

RPN: ++value [ENT] places [floor] ++

Returns the largest number less than or equal to a given value. This function can either round to the 1st through 10th decimal place by setting 'places' equal to 1 through 10 or to a whole number of places by setting 'places' equal to 0 through -10.

** Details**

- 'value' should be a real number

- 'places' must be a whole number in the range -10 to 10; real numbers will be truncated

- 'places' outside this range will return a "Parameter out of range" calculation error

**Algebraic Examples**

**RPN Examples**

<23.456 [ENT] 0 [floor] displays 23>

<23.567 [ENT] 0 [floor] displays 23>

<-23.456 [ENT] 0 [floor] displays -24>

<-23.567 [ENT] 0 [floor] displays -24>

<1,234.56 [ENT] 1 [floor] displays 1,234.5>

<1,234.56 [ENT] -2 [floor] displays 1,200>

++floor(value)++ : largest whole number less than or equal to 'value'

++floor(value; places)++ : largest number less than or equal to 'value' at location 'places'

Returns the largest number less than or equal to a given value. This function can either round to the 1st through 10th decimal place by setting 'places' equal to 1 through 10 or to a whole number of places by setting 'places' equal to 0 through -10.

__Because the value returned has been changed, this function can make solving impossible when used in templates. It is best to use these functions when directly computing results. See [https://.../t/help_equations|Incorporating Multiple Equations, Solving and How Calculating Works] sections.__

**Details**

- 'value' can either be a number or table where the same is returned

- 'places' must be a whole number in the range -10 to 10; real numbers will be truncated

- 'places' outside this range will return a "Parameter out of range" calculation error

**Examples**

Algebraic: ++ceil(value; places)++

RPN: ++value [ENT] places [ceil] ++

Returns the smallest number greater than or equal to a given value. This function can either round to the 1st through 10th decimal place by setting 'places' equal to 1 through 10 or to a whole number of places by setting 'places' equal to 0 through -10.

** Details**

- 'value' should be a real number

- 'places' must be a whole number in the range -10 to 10; real numbers will be truncated

- 'places' outside this range will return a "Parameter out of range" calculation error

**Algebraic Examples**

**RPN Examples**

<23.456 [ENT] 0 [ceil] displays 24>

<23.567 [ENT] 0 [ceil] displays 24>

<-23.456 [ENT] 0 [ceil] displays -23>

<-23.567 [ENT] 0 [ceil] displays -23>

<1,234.56 [ENT] 1 [ceil] displays 1,234.6>

<1,234.56 [ENT] -2 [ceil] displays 1,300>

++ ceil(value)++ : smallest whole number greater than or equal to 'value'

++ ceil(value; places)++ : smallest number greater than or equal to 'value' at location 'places'

Returns the smallest number greater than or equal to a given value. This function can either round to the 1st through 10th decimal place by setting 'places' equal to 1 through 10 or to a whole number of places by setting 'places' equal to 0 through -10.

__Because the value returned has been changed, this function can make solving impossible when used in templates. It is best to use these functions when directly computing results. See [https://.../t/help_equations|Incorporating Multiple Equations, Solving and How Calculating Works] sections.__

**Details**

- 'value' can either be a number or table where the same is returned

- 'places' must be a whole number in the range -10 to 10; real numbers will be truncated

- 'places' outside this range will return a "Parameter out of range" calculation error

**Examples**

++abs(value)++

Absolute value returns the positive result for a given value.

__This function is only available in templates.__

** Details**

- 'value' can either be a number or table where the same is returned

**Examples**

++sign(value)++

Determines whether a number is positive, negative or equal to 0. Returns -1 if 'value' is less than 0, 0 if 'value' is equal to 0, or 1 if 'value' is greater than 0.

__This function is only available in templates.__

** Details**

- 'value' can either be a number or table where the same is returned

**Examples**

++ipart(value)++

Returns the integer (or whole) number portion of 'value'.

__This function is only available in templates.__

** Details**

- 'value' can either be a number or table where the same is returned

**Examples**

++fpart(value)++

Returns the fractions (or decimal) portion of 'value'.

__This function is only available in templates.__

** Details**

- 'value' can either be a number or table where the same is returned

**Examples**

-------------

Round

round()

Floor

floor()

Ceiling

ceil()

Absolute Value

abs()

Sign

sign()

Integer Part

Integer Portion

ipart()

Fractional Part

Fractional Portion

fpart()