diff --git a/ChangeLog b/ChangeLog index c2b17eaf0..b97bb269a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2026-04-08 Jun-ichi Takimoto + + * 54295: Doc/Zsh/arith.yo: document that floating point + exceptions are ignored + 2026-04-08 Mikael Magnusson * 54319: Completion/compinit: turn off AUTO_NAME_DIRS option diff --git a/Doc/Zsh/arith.yo b/Doc/Zsh/arith.yo index 9f5298821..f8807eb4a 100644 --- a/Doc/Zsh/arith.yo +++ b/Doc/Zsh/arith.yo @@ -25,6 +25,8 @@ arithmetic expansion performed as for an argument of tt(let). More precisely, `tt(LPAR()LPAR())var(...)tt(RPAR()RPAR())' is equivalent to `tt(let ")var(...)tt(")'. The return status is 0 if the arithmetic value of the expression is non-zero, 1 if it is zero, and 2 if an error occurred. +Floating point exceptions (division by zero, overflow, etc.) are ignored and +not considered as errors. For example, the following statement