Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: David Marsh on August 16, 2020, 05:56:32 am
-
I have floating point calculations running which often end up in FP format but I wish to store them as INT`s for future use.
so far been unable to find any reference to this in my code books! So I need some help thanks in advance, David.
-
Any decent programming book (at least for C style languages) should describe casting from one data type to another. That's where you should start.
-
Please follow this link http://www.cplusplus.com/reference/cmath/round/ (http://www.cplusplus.com/reference/cmath/round/)
After that read and at least try to follow the rules for this website http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)
Tim S.