Check out example codes for "round down c++". It will help you in understanding the concepts better.

Code Example 1

#include <math.h>

double floor (double x);

Learn ReactJs, React Native from akashmittal.com