BigDecimal rounding question

Posted by chronosphenomena on Stack Overflow See other posts from Stack Overflow or by chronosphenomena
Published on 2010-05-21T09:16:29Z Indexed on 2010/05/21 9:20 UTC
Read the original article Hit count: 235

Filed under:
|
|

Hi,

I would like to be able to round up any number to quater of the whole number.

For example:

100.33 -> 100.50
100.12 -> 100.25
100.66 -> 100.75
100.99 -> 101.00
100.70 -> 100.75
100.00 -> 100.00
100.25 -> 100.25

etc...

thank guys...

© Stack Overflow or respective owner

Related posts about java

Related posts about bigdecimal