Hi guys,
i need to convert a float value to an integer (basically i want to have a final value with no decimal places). I will need this value to allways be rounded down, i.e.
12.34 = 12
43.98 = 43
0.12 = 0
ect....... (all rounded down)
How would i do this in Java? I'm using JBuilder but i'm having really bad problems with it, especially considering sometimes i get a value without decimal places.
If anyone could help i would be much appreciative.
Thanks in advance
i need to convert a float value to an integer (basically i want to have a final value with no decimal places). I will need this value to allways be rounded down, i.e.
12.34 = 12
43.98 = 43
0.12 = 0
ect....... (all rounded down)
How would i do this in Java? I'm using JBuilder but i'm having really bad problems with it, especially considering sometimes i get a value without decimal places.
If anyone could help i would be much appreciative.
Thanks in advance
Comment