tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Stor <mar...@frightanic.com>
Subject RE: Round up double value
Date Tue, 11 Nov 2003 07:34:15 GMT
Cui Xiaojing-a13339 wrote:
> Hello All,
> 
> How to round up 123.4567 to 123.46 in Java? Thanks.

Multiply by 100, cast to int, divide by 100... for example...

Regards,
Marcel


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message