Cut off numbers/words

Hi people,
I'd like to know if (and how) you can cut off numbers and words.
Example:
I have:
double = 1.23456789
How do I cut off till I have 2 (or 3) decimals left.
Thanks =)
Now I remember I've seen that before =D
Topic archived. No new replies allowed.