Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::floor is an STL mathematical function to round off a double down to the first integer. For example, the double 1.9 becomes the integer 1. Or more general, the double X.Y becomes the integer X.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.