Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Test-integerness/AWK/test-integerness.awk
Normal file
10
Task/Test-integerness/AWK/test-integerness.awk
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# syntax: GAWK -f TEST_INTEGERNESS.AWK
|
||||
BEGIN {
|
||||
n = split("25.000000,24.999999,25.000100,-2.1e120,-5e-2,NaN,Inf,-0.05",arr,",")
|
||||
for (i=1; i<=n; i++) {
|
||||
s = arr[i]
|
||||
x = (s == int(s)) ? 1 : 0
|
||||
printf("%d %s\n",x,s)
|
||||
}
|
||||
exit(0)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue