Skip to main content


Showing posts from March, 2021

C++ Exponents

According to mathematics exponent is a number indicates how many times to multiply the base number. When it comes to C++ exponents every programmer should know two std functions, std::pow and std::exp . To use these methods you should include cmath.

C++ Double to Int

In day to day programming we will need to convert a double value to an int value in different use cases. Also, I'm going to talk about how to avoid compiler warning C4244 when converting double to int.