How do you get doubles to round to the nearest tenth or hundreth?

Hello all,

I'm doing a program that calculates money based on user inputs. I know I was taught how to get a double to round to the nearest second decimal place. But my first programming class was years ago now. So how can I get it to only either display, or just plain care about only the first 2 numbers after a decimal place?
Topic archived. No new replies allowed.