Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Math expression evaluation error?



On Jan 9, 11:27pm, Ray Andrews wrote:
} Subject: Re: Math expression evaluation error?
}
} > 3/8 is not a fraction.
}
} Well, this is one of those things that won't change, but I must say that 
} in my experience an overwhelming majority of people would say that 3/8 
} is a fraction, and they would be surprised

OK, let's leave zsh out of this and try the standard "expr" utility,
which built-in arithmetic was designed to replace:

% expr 3 / 8
0
% expr 3.0 / 8.0
expr: non-numeric argument



Messages sorted by: Reverse Date, Date, Thread, Author