gowans007
12-16-2008, 03:38 PM
I am reading data as type float from a SQL database.
After this I either want to display or run a calculation and display to two decimal places.
I have rounded to that a number to many points can be show to the most two decimal places but I also want to show whole numbers and tenths to two points.
How can I force this.
i.e.
5 to be 5.00
5.5 to be 5.50
5.4768979 to be 5.48
After this I either want to display or run a calculation and display to two decimal places.
I have rounded to that a number to many points can be show to the most two decimal places but I also want to show whole numbers and tenths to two points.
How can I force this.
i.e.
5 to be 5.00
5.5 to be 5.50
5.4768979 to be 5.48