Ask your own question, for FREE!
Computer Science 11 Online
OpenStudy (anonymous):

c++ help needed How can i use ceil and/or floor to round a double to the nearest int? Write and run a program to "prove" your approach

OpenStudy (rsmith6559):

#include <cmath> double three = floor( PI ); double four = ceil( PI ); You may want this link: http://www.cplusplus.com/reference/clibrary/cmath/

OpenStudy (anonymous):

thanks

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!