As the math function uses `bc`, I alias `bc` to `bc -l`

$ math 3/4
0
$ function bc; command bc -l $argv; end
$ math 3/4
.75000000000000000000



On Fri, Oct 21, 2016 at 12:43 PM, Lists <barn...@drofle.co.uk> wrote:

> I am a fairly new user to the fish shell, but not new to Linux. I am
> finding fish a lot preferable to bash. I have noticed, while googling
> about this shell, that there seem to be some queries about doing some
> arithmetic, especially with floating point numbers.
>
> What seems to cause the most queries are division and scaling the
> result. I have now got that worked out, so if anyone is interested I can
> email my methods. However, I expect that most of you have already got is
> all sorted, and I had better keep quiet and go away.
>
> Anyway, thanks for all the hard work,
>
> Neil
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>



-- 
*Glenn Jackman*
Senior Software Developer

*Pythian - Love your data*
jack...@pythian.com
Tel: +1 613 565 8696 Ext. 1478
Mobile: +1 613 808 4984
www.pythian.com

-- 


--



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to