Hello all

please respond to my address to, I`m not in the list!

Look at this simple code:

SELECT
FLOOR(5000 * 0.112) AS A,
FLOOR(5000 * 11.2 / 100) AS B

/* why MySQL returns A = 560 and B = 559 ? */

I`ve tested either:

SELECT
FLOOR(5000 * 0.112) AS A,
FLOOR(5000 * 11.2 * 0.01) AS B

/* why MySQL returns A = 560 and B = 559 ? */

Is this a bug?

Regards

  Lukas Zapletal [[EMAIL PROTECTED]]
  web programmer
  Bach systems Ltd., Czech Republic

  ----------- PGP FINGERPRINT ------------
  4BA4ECA3EDE9608558646ABBA14259E3459FA0B4
  --------------- COOKIE -----------------
  want embed Perl into HTML?   http://perl.apache.org/embperl/


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to