I need to round a decimal number to a desired number of decimal places as an input for a calculation. Can anyone help me on this?
http://stackoverflow.com/questions/153724/how-to-round-a-number-to-n-decimal-places-in-java
[code] Math.round(a * 10^N) / 10^N [/code]
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
http://stackoverflow.com/questions/153724/how-to-round-a-number-to-n-decimal-places-in-java
[code]
Math.round(a * 10^N) / 10^N
[/code]