fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double value = 0;
  6. double gain = 0.01;
  7. double offset = -500;
  8.  
  9. value -= offset;
  10. uint64_t raw = value / gain;
  11. cout << raw;
  12. return 0;
  13. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
50000