Skip to content

Instantly share code, notes, and snippets.

@yanjinbin
Created April 18, 2017 07:46
Show Gist options
  • Save yanjinbin/c25a1b8166519e2c0685ba415ed9bc5d to your computer and use it in GitHub Desktop.
Save yanjinbin/c25a1b8166519e2c0685ba415ed9bc5d to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
using namespace std;
int main(){
const float x =1.1;
const float z = 1.123;
float y = x;
for(int j=0;j<90000000;j++){
y*=x;
y/=z;
y+=0.1f;
y-=0.1f;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment