]> git.lizzy.rs Git - plan9front.git/commitdiff
nan(2): document isInf(x, 0) matching +∞ and -∞
authorkvik <kvik@a-b.xyz>
Thu, 18 Feb 2021 20:40:30 +0000 (21:40 +0100)
committerkvik <kvik@a-b.xyz>
Thu, 18 Feb 2021 20:40:30 +0000 (21:40 +0100)
sys/man/2/nan

index 90e39b994f5d47b325d879a7084d39f72103682f..d5edc589b349d591b6ae756ace98292322ad6661 100644 (file)
@@ -45,7 +45,9 @@ is greater than or equal to zero,
 else negative infinity.
 .I IsInf
 returns true if its first argument is infinity
-with the same sign as the second argument.
+with a sign matching the second argument.
+A zero sign matches both negative and positive
+infinities.
 .SH SOURCE
 .B /sys/src/libc/port/nan.c
 .SH "SEE ALSO"