Why should you not use floats for actual decimal numbers?

I don’t think etrade has learned the lessons in my posts on floating point numbers/variables.

SQL Server Decimal/Money/Float datatypes

Javascript (and apparently other programming languages) can’t do math

Click here for a screen shot of the full page.

Here is a link to the page where I found it. I hope they fix it soon. It’s pretty sad.

But, on the other hand, I wonder what I will do with that extra .00000000000005 dollars?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s