shriyakish Posted March 16, 2009 Share Posted March 16, 2009 Hello all,I have a calculated variable which is a Double.I need to round it so that the Sum of it comes as a whole number.eg: the variable evaluates to 49,894.5I need it to be 49,895But try as I might (by specifying the pattern as #,###) I get it as 49,894 Please help me as to how can I round the number to the next digit. Thanks Link to comment Share on other sites More sharing options...
itchytoes Posted March 30, 2009 Share Posted March 30, 2009 Can you just call Math.round() on it before printing? Link to comment Share on other sites More sharing options...
anitasri Posted September 26, 2011 Share Posted September 26, 2011 I'm facing the same issue. Did you ever get to resolve this. Please help.Thank,Anita. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now