This question makes no sense. Float values are held in binary, not decimal, and adding a trailing zero after the decimal point makes no difference to any numeric values.
JamesCherrill
... trying to help
8,497 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,454
Skill Endorsements: 29
As James said in your context it doesnt really make sense. However if you are printing the value you can use the DecimalFormat class, ie.:
DecimalFormat df = new DecimalFormat ("0.00");
float someFloat;
//some code
System.out.println(df.format(someFloat));
Not sure if there is a better/easier way, but this is how i normally do it.
Krokcy
Junior Poster in Training
55 posts since Sep 2010
Reputation Points: 24
Solved Threads: 6
Skill Endorsements: 0
Anyway, problem solved.
Good! Now please mark this thread "solved" so everybody knows its status.
JamesCherrill
... trying to help
8,497 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,454
Skill Endorsements: 29
Question Answered as of 9 Months Ago by
JamesCherrill
and
Krokcy