Logo
Explore Help
Sign In
h/fish-shell
1
Fork 0
You've already forked fish-shell
mirror of https://github.com/fish-shell/fish-shell.git synced 2026-05-07 07:11:14 -03:00
Code Issues Packages Projects Releases Wiki Activity
Files
e7f87c08e1d4acf4e227d0f2b7257469e8915c4e
fish-shell/tests/math.in

11 lines
207 B
Fish
Raw Normal View History

add floating point output to `math` command This makes it easy for the user to request floating point output with the desired number of digits after the decimal point (not to be confused with significant digits). Note that this is just a thin wrapper so someone can say `math -s3 10 / 3` rather than `math "scale=3; 10 /3"`. Resolves #1643
2016-05-02 20:53:48 -07:00
math 3 / 2
math 10/6
math -s0 10 / 6
math -s3 10/6
math '10 % 6'
math -s0 '10 % 6'
math '23 % 7'
math -s6 '5 / 3 * 0.3'
true
Add test for long numbers in math This should catch the error in 26e781ef5a66a776310a4a47ef02f122e1dc0170.
2016-12-29 14:00:15 +01:00
math "1 + 1233242342353453463458972349873489273984873289472914712894791824712941"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 35ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API