math 5/2 returns 2.
math 5/2
I want 2.5 -- how do I get decimal values?
You can "force" math to return fractions by default -- use the -l option to bc:
math
-l
bc
$ math 5/2 2 $ function bc command bc -l $argv end $ math 5/2 2.50000000000000000000