Pádraig Brady <[email protected]> writes:

> +   Assume that numbers are properly abbreviated.
> +   i.e. input will never have both 5000K and 6M.  */

I think this is a too strong assumption.  I wouldn't be surprised to
find, for example, both 1M and 1500K in a data set.

Are there problems to normalize values using this pseudo-code?

while (abs (a) > 1000) //or 1024
  {
    order_a += signum (a);
    a /= 1000; //or 1024
  }

do the same with b and only after compare them.

Regards,
Giuseppe


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to