Skip to content

v0.6.0

Choose a tag to compare

@ryuichiueda ryuichiueda released this 30 Jul 08:53
· 2471 commits to main since this release

Implemented some features for $(( ))

Support of parameters and variables

🍣 echo $(( $$ / $$ ))
1
🍣 A=100 ; echo $(( A  + $A ))
200

Support of **

🍣 A=100 ; echo $(( 2 ** 10 ))
1024
🍣 A=100 ; echo $(( 2 ** 0 ))
1
🍣 A=100 ; echo $(( 2 ** -1 ))
sush:  2 ** -1 : exponent less than 0 (error token is "-1")