ecl-logo Documentation

RoundReals

RoundReals[expr, n]newExpr

rounds all _Real numbers in expr to n digits.

RoundReals[expr]newExpr

rounds all _Real numbers in expr to 15 digits.

Details

    Input
    Output
    General Options

Examples

Basic Examples  (4)

Round a number:

Round a number to a specific number of digits after the decimal:

Round all reals in the expression:

Round to two significant figures:

Options  (2)

Force  (2)

Held expressions may prevent RoundReals from evaluating when 'Force' is set to its default value of False:

Round all real numbers, even those inside expressions whose heads have attributes Hold, HoldAll, etc: