Initial commit

This commit is contained in:
lzy
2024-03-10 16:11:35 +08:00
commit 0baf07a597
14 changed files with 132 additions and 0 deletions

10
Chapter2/Section2/float.c Normal file
View File

@@ -0,0 +1,10 @@
int func(float f)
{
if (f < 0)
return -1;
// else if (f == 0)
else if (fabs(f - 0) <= 1e-6)
return 0;
else
return 1;
}