trimming a float value

I am getting a float value as 3.12345I have to make it as 3.12How can I do this?Thanks in advance
[125 byte] By [KSNSa] at [2007-11-26 15:18:22]
# 1
Uh-oh.
cotton.ma at 2007-7-8 11:01:03 > top of Java-index,Java Essentials,Java Programming...
# 2
Look at DecimalFormat and if that doesn't help then look at http://docs.sun.com/source/806-3568/ncg_goldberg.html
cotton.ma at 2007-7-8 11:01:03 > top of Java-index,Java Essentials,Java Programming...
# 3
Try putting whiteout on the screen. Or you could use a DecimalFormat.
floundera at 2007-7-8 11:01:03 > top of Java-index,Java Essentials,Java Programming...
# 4
> Try putting whiteout on the screen. Or you could use> a DecimalFormat.This did not solve my problem because my console has a black background. No dukes for you!
kablaira at 2007-7-8 11:01:03 > top of Java-index,Java Essentials,Java Programming...
# 5
Thanks to all of you.
KSNSa at 2007-7-8 11:01:03 > top of Java-index,Java Essentials,Java Programming...