How can i calculate numbers and round off the decimal point to 2 decimal places?
for example i have 2 numbers 5 and 3
the result of 5 divide by 3 is 1.666666666
i want it to return me only 1.66 or 1.67 for example..
how could i go about it? and for my numbers what variable type should they be? double? float? i've tried all but i couldn't get the result i want.
Anyone can advise?