al. wrote: but i need the number to be displayed
as a unit of currency i.e. 3.80.
My predicament is that when i convert the string to an int or double i get 3.8 and not 3.80. Does anybody know of a method that allows me to converrt a string to a unit of currency?
dan_pretty_boy wrote: As hobbles say there is an easier way.. -> DecimalFormat
bonkey wrote: Which would be what the URL I posted linked to in the Sun documentation... jc
for(int i=0; i<whatever; i++){ // Stuff }