Welcome, Guest. Please login or register.

Author Topic: Gold 2.7 release for the Vampire accelerators  (Read 101156 times)

Description:

0 Members and 7 Guests are viewing this topic.

Offline Louis Dias

Re: Gold 2.7 release for the Vampire accelerators
« on: March 08, 2018, 03:40:08 PM »
Apparenntly...  The "Win" in "WinUAE" doesn't stand for "Windows"...  Now I've heard everything...
 

Offline Louis Dias

Re: Gold 2.7 release for the Vampire accelerators
« Reply #1 on: March 19, 2018, 10:56:19 PM »
This has happened on every platform (from C64 to x64) I've coded on and why in Windows I now use "decimal" instead of floats or doubles...

https://stackoverflow.com/questions/618535/difference-between-decimal-float-and-double-in-net
 

Offline Louis Dias

Re: Gold 2.7 release for the Vampire accelerators
« Reply #2 on: March 21, 2018, 12:33:02 PM »
Quote from: Thomas Richter;837539
Hopefully not. Did you notice that the result is just plain wrong? I mean, not only "off" by one ulp, but wrong?

which, of course, doesn't solve the problem, but only masks it. You get other round-off errors, and in most cases, worse round-off errors because, internally, the system still works in binary.

What we have here is just a bug. Ok, that stuff happens, but I wonder where the thousands of test cases were?
Uh yeah, I was referring to the 6.499999...  In the calculator he had 1.1-1, so it's still floating point rounding error...and again why I use DECIMAL vs single/float/double in code.
In fact, I read somewhere that when a float would return X.99999...It should be considered a whole number (X+1).  That's why lots of code I've seen use Round(x,y) functions around float/double calculations specifying how many digits right of the decimal point they want to see...and again why I prefer to use DECIMAL data-types.
« Last Edit: March 21, 2018, 12:41:44 PM by lou_dias »