On Mon, Oct 25, 1999 at 13:05:16 +0100, Edmund GRIMLEY EVANS wrote:
> You shouldn't be using floating-point at all for a simple calculation
> like that. I bet you don't really mean "1.33" anyway. What's wrong
> with ((info->lobin + info->hibin + info->ascii)*4/3 < (info->lobin +
> info->hibin)*3 + info->ascii)?
And you could avoid the division with:
(info->lobin + info->hibin + info->ascii)*4
< ((info->lobin + info->hibin)*3 + info->ascii)*3
or
info->ascii * 4 < (info->lobin + info->hibin) * 5 + info->ascii * 3
:)
--
Vincent Lefèvre <[EMAIL PROTECTED]> - PhD student in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.