Vocabulary

math.functions

Inputs

Outputs

Word description

Outputs the whole number closest to x, rounding out at half, breaking ties towards even numbers. This is also known as banker's rounding or unbiased rounding.

Notes

The result is not necessarily an integer.

Examples

Definition

Methods

math.functions

Inputs

x | a real |

Outputs

y | a whole real number |

Word description

Outputs the whole number closest to x, rounding out at half, breaking ties towards even numbers. This is also known as banker's rounding or unbiased rounding.

Notes

The result is not necessarily an integer.

Examples

USING: math.functions prettyprint ;
0.5 round-to-even .

0.0

0.0

USING: math.functions prettyprint ;
1.5 round-to-even .

2.0

2.0

Definition

Methods

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2176, heads/master-08e1de1d5a, Aug 9 2022 09:18:14)