#include <iostream>
#include <cmath>
#include <limits>
using namespace std;

int main() {
	// your code goes here
    double h = .1;
    double x = 1;
    int nSteps = abs(x / h);
    
    double rem = fmod(x, h);
    cout<<"fmod output is "<<rem<<endl;
    if(abs(rem)<std::numeric_limits<double>::epsilon())
		cout<<"fmod output is almost near 0"<<endl;
    
    rem = remainder(x,h);
    cout<<"remainder output is "<<rem<<endl;
    if(abs(rem)<std::numeric_limits<double>::epsilon())
		cout<<"remainder output is almost near 0"<<endl;
    
    return 0;
}