Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Variables #308364
02/02/10 22:45
02/02/10 22:45
Joined: Feb 2009
Posts: 46
Spain
B
Beker Offline OP
Newbie
Beker  Offline OP
Newbie
B

Joined: Feb 2009
Posts: 46
Spain
You expose the code and results, as you can see some change decimal value for no reason, set well with some numbers engine invented decimals.

Realize that you did not alter the number entered at any time. And the engine in some cases invented decimals and in others the changes.

Sorry for my bad English level, any explanation?



Re: Variables [Re: Beker] #308418
02/03/10 09:24
02/03/10 09:24
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
See manual/variables. A var has 32 bits. Your code produces wrong results because you're exceeding the var precision. - Please only post engine bugs to the bug forum, not script bugs.

Re: Variables [Re: Beker] #308495
02/03/10 13:47
02/03/10 13:47
Joined: Feb 2009
Posts: 46
Spain
B
Beker Offline OP
Newbie
Beker  Offline OP
Newbie
B

Joined: Feb 2009
Posts: 46
Spain
Is a BUG, No problem from my code, look at the code simplified.
I spent much money on this engine and I am only overcome problems.
any explanation?


Re: Variables [Re: Beker] #308501
02/03/10 13:56
02/03/10 13:56
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

Joined: Aug 2005
Posts: 1,230
You can believe jcl if he says this is not a bug. What you see is a limitation of floating point numbers on computers. You should read the wikipedia article on the topic or any other article on the subject that might be easier to understand.

Floating point numbers cannot represent every possible value and therefore you will always receive an approx. value.


Your friendly mod is at your service.
Re: Variables [Re: Beker] #308508
02/03/10 14:23
02/03/10 14:23
Joined: Feb 2009
Posts: 46
Spain
B
Beker Offline OP
Newbie
Beker  Offline OP
Newbie
B

Joined: Feb 2009
Posts: 46
Spain
In my experience, and what they have read, it happens when you load with the numbers, but if a variable is not altered and is in range, would not have to have different values indicated. Read more about the subject, but this happened to me with any language. Thank


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1