C++ Useful Math Functions
CMath C++ library. So far, we've gone over arithmetic operators for math in C++, including addition, subtraction, multiplication, divison, modulus, decrement, and increment. Outside of these operators, we can utilize the cmath library in C++ to computer more complex mathematical expressions. In this video we'll go over the most commonly used math functions for the average programmer, specifically, min, max, abs, floor, ceil, round pow, sqrt. We'll also go over some practical use cases for these functions.
Learn the random function in C++ by coding rock paper scissors:
• Rock Paper Scissors Game in C++
List of math functions in the cmath library:
https://cplusplus.com/reference/cmath/
C++ Playlist:
• C++ Programming Tutorial
Install C++ with VS Code:
• How to set up C++ in Visual Studio Code
Subscribe for more coding tutorials 😄 !
Other Videos By Kenny Yip Coding
2025-02-21 | C++ String Functions |
2025-02-19 | C++ Tuples |
2025-02-13 | Map in C++ |
2025-01-15 | C++ Typedef and Type Aliases |
2025-01-14 | C++ Pair |
2025-01-13 | Javascript Rock Paper Scissors Minus One #squidgame |
2024-12-23 | Embed YouTube video in HTML |
2024-12-20 | HTML Boiler Plate vscode |
2024-12-19 | Animations in JavaScript games |
2024-12-09 | JavaScript Keyboard Events |
2024-12-04 | C++ Useful Math Functions |
2024-12-02 | Sounds and Music in JavaScript games |
2024-11-25 | Build A Password Generator With JavaScript |
2024-11-06 | Build a Calculator with Javascript |
2024-11-04 | C++ Set, Unordered Set, Multiset |
2024-10-28 | Build a Javascript Compound Interest Calculator |
2024-10-21 | Code Pacman in Java |
2024-09-05 | C++ Iterators |
2024-09-02 | How does recursion work? |
2024-08-28 | Exception Handling C++ |
2024-08-19 | Enums in C++ |