summaryrefslogtreecommitdiffstats
path: root/Functions/Misc/zmathfuncdef
diff options
context:
space:
mode:
authordana <dana@dana.is>2026-04-13 11:04:58 -0500
committerdana <dana@dana.is>2026-04-13 11:07:56 -0500
commitbfb982d6824a41ebff1fc5934ebee7f01df1e682 (patch)
tree4cf710d17dcd411e88f1f5261ed96ec15202c394 /Functions/Misc/zmathfuncdef
parent54313: convfloat: use consistent capitalisation for NaN, Inf, and -Inf (diff)
downloadzsh-bfb982d6824a41ebff1fc5934ebee7f01df1e682.tar
zsh-bfb982d6824a41ebff1fc5934ebee7f01df1e682.tar.gz
zsh-bfb982d6824a41ebff1fc5934ebee7f01df1e682.tar.bz2
zsh-bfb982d6824a41ebff1fc5934ebee7f01df1e682.tar.lz
zsh-bfb982d6824a41ebff1fc5934ebee7f01df1e682.tar.xz
zsh-bfb982d6824a41ebff1fc5934ebee7f01df1e682.tar.zst
zsh-bfb982d6824a41ebff1fc5934ebee7f01df1e682.zip
54318: mathfunc: add isnan() and isinf(). also document NaN + Inf
Diffstat (limited to 'Functions/Misc/zmathfuncdef')
-rw-r--r--Functions/Misc/zmathfuncdef2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Misc/zmathfuncdef b/Functions/Misc/zmathfuncdef
index 5ed991f68..6b8dfe1dd 100644
--- a/Functions/Misc/zmathfuncdef
+++ b/Functions/Misc/zmathfuncdef
@@ -61,7 +61,7 @@ if ! zmodload -e zsh/mathfunc; then
mathfuncs=(abs acos acosh asin asinh atan atanh cbrt ceil cos cosh erf erfc
exp expm1 fabs float floor gamma int j0 j1 lgamma log log10 log1p logb
sin sinh sqrt tan tanh y0 y1 signgam copysign fmod hypot nextafter jn yn
- ldexp scalb rand48)
+ ldexp scalb rand48 ilogb isinf isnan log2 rint)
mathfuncpat="(${(j.|.)mathfuncs})"
bodysearch=$body
while [[ $bodysearch = (#b)(*[^[:alnum]]|)([[:alnum:]]##)\((*) ]]; do