Hi, what is the best way to round a double to two decimal places?
ie, if i had the number 77.786 i would want it rounded to 77.79.
I dont want a way to just display this number as two decimal places but to keep it like that so any time i use it it will be 77.79.
Also i cant know anything about the number, so there is no way of knowing if it is 77.786...or 7777777.554.
Thanks for any help.
ie, if i had the number 77.786 i would want it rounded to 77.79.
I dont want a way to just display this number as two decimal places but to keep it like that so any time i use it it will be 77.79.
Also i cant know anything about the number, so there is no way of knowing if it is 77.786...or 7777777.554.
Thanks for any help.