--4yjA7FEVET1dX9yT
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

space.ship.traveller / gmail.com:

> >>> print (-140.14 * 100)
> -14014.0

> Well, actually this is the correct answer.... i.e. the result we are
> looking for if we were using real math. But, it is not the correct
> way to round 14013.999999, which is the actual value that we get with
> floating point math...

Why isn=E2=80=99t it? I might have learned basic math years ago, but to
me -14013.999999 rounded to one decimal place is exactly -14014.0
(it=E2=80=99s also -14014.00 when rounded to two decimal places, as well as
-14014 when rounded to integers).

> Rounding 9.9 to 10.0 is like rounding 99 to 100

Yeah, but you=E2=80=99re not rounding 9.9 to 10.0 here, you=E2=80=99re roud=
ing
9.99 to 10.0 (which is like rounding 99.9 to 100, i.e., correct).

-- Shot (with a random sig, no less)
--=20
The reason that every major university maintains a department of
mathematics is that it is cheaper than institutionalizing all those people.

--4yjA7FEVET1dX9yT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFHTdIoi/mCfdEo8UoRAhSKAJ4yifLMTChijsqwDbmmXO4wez7XLACgmXxW
l+C9/eiiOkdk1vf2nJKcc5w=
=XCKV
-----END PGP SIGNATURE-----

--4yjA7FEVET1dX9yT--

space.ship.traveller / gmail.com:

> >>> print (-140.14 * 100)
> -14014.0

> Well, actually this is the correct answer.... i.e. the result we are
> looking for if we were using real math. But, it is not the correct
> way to round 14013.999999, which is the actual value that we get with
> floating point math...

Why isn°«t it? I might have learned basic math years ago, but to
me -14013.999999 rounded to one decimal place is exactly -14014.0
(it°«s also -14014.00 when rounded to two decimal places, as well as
-14014 when rounded to integers).

> Rounding 9.9 to 10.0 is like rounding 99 to 100

Yeah, but you°«re not rounding 9.9 to 10.0 here, you°«re rouding
9.99 to 10.0 (which is like rounding 99.9 to 100, i.e., correct).

-- Shot (with a random sig, no less)
-- 
The reason that every major university maintains a department of
mathematics is that it is cheaper than institutionalizing all those people.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFHTdIoi/mCfdEo8UoRAhSKAJ4yifLMTChijsqwDbmmXO4wez7XLACgmXxW
l+C9/eiiOkdk1vf2nJKcc5w=
=XCKV
-----END PGP SIGNATURE-----