diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2013-03-05 20:04:53 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2013-03-05 20:04:53 +0000 |
commit | 3def943d046ad03540dd188ab52c0eacaa021149 (patch) | |
tree | a83ffc396543f3da78f3edef865e7094bea9f068 /Test/C01arith.ztst | |
parent | ac22eab0d9ec3d12271a8c80c633716850e3b349 (diff) | |
download | zsh-3def943d046ad03540dd188ab52c0eacaa021149.tar.gz zsh-3def943d046ad03540dd188ab52c0eacaa021149.tar.xz zsh-3def943d046ad03540dd188ab52c0eacaa021149.zip |
users/17665: add FORCE_FLOAT option
Diffstat (limited to 'Test/C01arith.ztst')
-rw-r--r-- | Test/C01arith.ztst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst index 02d1519a4..71c8a1969 100644 --- a/Test/C01arith.ztst +++ b/Test/C01arith.ztst @@ -243,3 +243,18 @@ >6000000 >5000 >255 + + # Force floating point. + for expr in "3/4" "0x100/0x200" "0x30/0x10"; do + print $(( $expr )) + setopt force_float + print $(( $expr )) + unsetopt force_float + done +0:Forcing floating point constant evaluation, or not. +>0 +>0.75 +>0 +>0.5 +>3 +>3. |