[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppFloor
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppFloor
(C/C++) std::floor
Mathematical function that returns a double's value rounded down to its lowest int equivalent, but keeping it a double.int main() { assert(std::floor(3.14) == 3.0); assert(std::floor(69.69) == 69.0); }
- include <cmath>
- include <cassert>
Code links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
