Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (TipmyPip, AndrewAMD, dBc, clonman), 18,621 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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 | 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