Big Decimal Round

Not Reviewed
Equation / Last modified by AndrewS on 2016/11/08 15:14
Rating
ID
MichaelBartmess.Big Decimal Round
UUID
929d374c-6eb5-11e3-84d9-bc764e202424

The Big Decimal Round calculator rounds a Groovy BigDecimal to a specified number of places.

Instructions:

  • Choose the rounding mode of your preference (See Notes for a chart explaining how the rounding modes work). Your choices of rounding mode are:
    • Ceiling
    • Down
    • HalfUp
    • HalfDown
    • HalfEven
    • Floor
    • Up
  • Input the number you would like to be rounded
  • Choose the amount of decimal places you would like the number chosen in the previous step to be rounded to

Notes:

The Values in are rounded as follows for chosen Rounding Mode

Values in:5.52.51.61.11.0-1.0-1.1-1.6-2.5-5.5
UP63222-1-2-2-3-6
DOWN52111-1-2-2-3-6
CEILING63221-1-1-1-2-5
FLOOR52111-1-2-2-3-6
HALF_UP63211-1-1-2-3-6
HALF_DOWN52211-1-1-2-2-5
HALF_EVEN62211-1-1-2-2-6