There's a function that I'm working with that returns a double with a very long decimal part tacked onto it. The units the double represents are so precise that I can just lose the decimal part. I was thinking of using a StringBuffer to parse the double and remove the offending decimal. Anyone know an easier way to do this?
There's nothing more dangerous than a resourceful idiot. ---Dilbert
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Dec 01, 2000
Thanks for the reply. In all honesty, though, that seems to be a lot more complex than my original idea. I'm only dealing with two numbers here, and implementing a DecimalFormat seems to be a bit much.