[Python-Dev] math.rint bites the dust (original) (raw)

Thomas Wouters thomas@xs4all.net
Sun, 6 Aug 2000 22:25:03 +0200


On Sun, Aug 06, 2000 at 04:17:33PM -0500, Guido van Rossum wrote:

After a brief consult with Tim, I've decided to drop math.rint() -- it's not standard C, can't be implemented in portable C, and its naive (non-IEEE-754-aware) effect can easily be had in other ways.

I don't particularly disagree, since I hardly do anything with floating point numbers, but how can something both not be implementable in portable C and it's effect easily be had in other ways ?

I also recall someone who was implementing rint() on platforms that didnt have it... Or did that idea get trashed because it wasn't portable enough ?

-- Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!