fork download
  1. #include <iostream>
  2.  
  3. int main () {
  4. float numb1, numb2, fillweight;
  5.  
  6. numb1=0.000171438;
  7. numb2=11666;
  8.  
  9.  
  10. fillweight= float(numb1*numb2);
  11. std::cout << fillweight << "\n";
  12.  
  13. fillweight = 0.000171438 * 11666;
  14. std::cout << fillweight << "\n";
  15.  
  16. fillweight= float(float(numb1) * float(numb2));
  17. std::cout << fillweight << "\n";
  18. }
  19.  
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
2
2
2