fork(1) download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. double LBD = -INFINITY;
  9. double failedCalcOfUBD = NAN;
  10. cout << floor(log10(LBD)) << " " << floor(log10(failedCalcOfUBD)) << endl;
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
nan nan