1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-05 23:11:11 +02:00

unposted: mention numeric output with underscore separators

This commit is contained in:
Peter Stephenson 2014-09-23 20:47:42 +01:00
parent 9b638398b4
commit b603137911
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2014-09-23 Peter Stephenson <p.w.stephenson@ntlworld.com> 2014-09-23 Peter Stephenson <p.w.stephenson@ntlworld.com>
* unposted: NEWS: mention numeric output with underscore separators.
* unposted: NEWS: mention new * unposted: NEWS: mention new
/usr/local/share/zsh/site-functions default. /usr/local/share/zsh/site-functions default.

6
NEWS
View file

@ -10,7 +10,11 @@ Changes since 5.0.0
- Numeric constants encountered in mathematical expressions (but not other - Numeric constants encountered in mathematical expressions (but not other
contexts) can contain underscores as separators that will be ignored on contexts) can contain underscores as separators that will be ignored on
evaluation, as allowed in other scripting languages. For example, evaluation, as allowed in other scripting languages. For example,
0xFFFF_FFFF, or 3.141_592_654. 0xFFFF_FFFF, or 3.141_592_654. From 5.0.6 this is also available
in output, e.g.
setopt cbases
zmodload zsh/mathfunc
print $(( [#16_4] 2**32 - 1 )) $(( [#_3] 4 * atan(1.0) ))
- "functions -T" turns on tracing for the specified function(s) only, - "functions -T" turns on tracing for the specified function(s) only,
similar to "functions -t" except that tracing is turned off for any similar to "functions -t" except that tracing is turned off for any