Keywords: clear search

Welcome to the Futurama Support Site

The Futurama Support Site is the website where you can find Futurama and Futurama Vision documentation. If you have any questions about the support pages or if you want to provide us feedback please send us an e-mail.

Index Round

451 documents found.

Round

Developer
Futurama-Editor
Futurama-Formulas

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