Nestor wrote:

How do you compare 2 float in shell script preferrable in cshell?

Don't.

Really.  Please.

This is an application script. Use a full programming language like Perl, Python, Tcl, Ruby, etc.

Also, if this is doing anything useful with money, use a language with a Money or Decimal type. Doing floating point math with monetary amounts will be nothing but trouble. The problem is that 1/10 is an inexact repating decimal in binary floating point.

-a


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to