• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Forcing Double datatype to have two decimal places

paul72

Newbie
I'm working on a calculator that deals with currency amounts and I'm trying to restrict the results to have only two decimal places. I've been scouring the web and have tried several things like converting to an integer, then back to a float and dividing by 100, etc but I haven't had luck yet.

Can anyone offer a suggestion? Thank you!
 
Back
Top Bottom