User Profile
Collapse
-
"Rounding" in C++ --- HELP!!!
I am writing a program for a C++ class and I need to be able to round my numbers up to the nearest 1000 (not 1000th, the actual number 1000). For example, if my variable value came back as 325, I would need a function to round it to 1000, if the variable came back as 1555, I would need to round to 2000. Any suggestions? Other than floor and ceiling functions, which do not appear to apply in my case, I cannot find any functions available in C++....
No activity results to display
Show More