• Futurama Formulas - Date and time
• Futurama Formulas - Math
• Futurama Formulas - Statistical
• Futurama Formulas - Text
• Futurama Formulas - Logical
• Futurama Formulas - Table
• Futurama Formulas - Document
• Futurama Formulas - Conversion
• Futurama Formulas - Matrix
• Creating custom formulas in Futurama

Module: Editor

Version: 2.2.1 +

Type: Long/Double

Category: Math

## Description

The formula 'Round' for a double rounds a number to a specified number of digits. A negative number of digits rounds left of the decimal, see example.

The formula 'Round' for an integer rounds a real number to the nearest even integer. The behavior of this method follows IEEE Standard 754, section 4, also called Bankers-rounding. This means that numbers that end on .5 are rounded to the nearest even integer. This is done to avoid a distortion of the average by always rounding up.

## Parameters

### Double

Number:

Here you refer to or fill in the number that has to be rounded.

Num_digits:

Here you fill in the amount of digits

### Long

Number:

Here you refer to or fill in the number that has to be rounded.

## Examples

### Description

In this example you will see three examples for double numbers and two for long numbers.

Number:

0.15

Num_digits:

1

Result:

0.2

Number:

0.25

Num_digits:

1

Result:

0.2

Number:

123.25

Num_digits:

-1

Result:

120

Number:

0.5

Result:

0

Number:

1.5

Result:

2

## External Links

Updated: 2013-04-13