You are not logged in. Login or Signup
Home » Messageboard » Message 888083 (Thread)

# KINDA URGENT THREADJACK!
I need some help with Java.
I can't see mto find out who you limit the number of units are printed to the screen after a devimal place when printing a double.
I'm trying to print something and it only shows for example 14.777777777777777, i need to be able to show it as just 14.7

Any help would be greatly appreciated.
(, Fri 7 Mar 2003, 6:08, archived)
# This:
java.sun.com/j2se/1.3/docs/api/java/text/DecimalFormat.html
Is prolly what you need?

Battling with the beast Java atm too :)

(and have been all night)
(, Fri 7 Mar 2003, 6:23, archived)
# Same here, mind you my things quite simple
i just couldn't find that in my notes, other than that it's done. Thanks for the help.
(, Fri 7 Mar 2003, 6:32, archived)
# Mine's simple too..
It's just 2 weeks of coursework condensed into a night's work :)
(, Fri 7 Mar 2003, 6:37, archived)
# Sounds familiar.
I work better at night anyway.
(, Fri 7 Mar 2003, 6:41, archived)
# yeah..
Why is it that I get a hell of lot more done during the night than during the day ? I can be the most create person while everyone is sleeping, yet durning the day I just want to go out and I couldn't pshop a kitten if I tried.

Being in NZ of course means all the UK is alive and b3ta is humming so I dont miss out on any b3ta maddnessssssssssss.

Mmmm spicy brains....
(, Fri 7 Mar 2003, 7:56, archived)