fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <unistd.h>
  4.  
  5.  
  6. int main(int argc, char **argv) {
  7.  
  8. char a[] = "3.141593";
  9. float b = strtod(a,0);
  10. if(b == 3.141593f)
  11. printf("%f", b);
  12. return 0;
  13. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
3.141593