fork(2) download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5. double value;
  6. char string[] = "7.7";
  7.  
  8. sscanf(string, "%lf", &value);
  9.  
  10. if (value == 7.7)
  11. printf("Strictly equal\n");
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
Strictly equal