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...
So i have an array elements and it is declared like this:
Loans ** elements;
elements = new Loans*[initial_size];
where initial_size = 4
I have a remove some element method that checks if it is a good time to shrink the array (ie there is more then twice the amount of space for the amount...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.