[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shell wrappers for trig and other mathematical functions



tomas@tuxteam.de (12019-10-02):
> [1] try "echo $((0.6 + 1.3))" in your bash to see what I mean :)

People live happier when their "bash" is actually a zsh:

~ $ echo $((0.6 + 1.3))
1.8999999999999999
~ $ zmodload zsh/mathfunc
~ $ echo $[exp(1)+exp(-1)]
3.0861612696304874

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: PGP signature


Reply to: