float in a vector to 2 decimal places?

icklejez

Member
Jan 12, 2007
50
0
0
Hi, im grabbing data from my SQL table, putting it into a vector, but ive completely forgotten how to display it to 2 decimal places?

heres whats going on:

row.addElement(new Float(results.getFloat(5)));

So i want it to something like 0.00

cheers