2016-11-25 17:18:40 +01:00
|
|
|
#include <u.h>
|
2017-04-19 23:33:14 +02:00
|
|
|
#include <lib9.h>
|
2016-11-25 17:18:40 +01:00
|
|
|
|
|
|
|
void
|
|
|
|
main(){
|
|
|
|
char *correct="0.987650\n";
|
|
|
|
static char result[128];
|
|
|
|
|
2020-09-13 02:21:36 +02:00
|
|
|
sprint(result, "%f\n", 0.98765f);
|
2016-11-25 17:18:40 +01:00
|
|
|
|
|
|
|
if(!strcmp(result, correct)){
|
|
|
|
print("PASS\n");
|
|
|
|
exits("PASS");
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
print("FAIL\n");
|
|
|
|
exits("FAIL");
|
|
|
|
}
|
|
|
|
}
|