1234567891011121314151617181920 |
- #include <u.h>
- #include <lib9.h>
- #include <stdio.h>
- void
- main(){
- char *correct="0.987650\n";
- static char result[128];
- sprintf(result, "%f\n", 0.98765f);
- if(!strcmp(result, correct)){
- print("PASS\n");
- exits("PASS");
- }
- else{
- print("FAIL\n");
- exits("FAIL");
- }
- }
|