Variables

Posted By: Beker

Variables - 02/02/10 22:45

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?


Posted By: jcl

Re: Variables - 02/03/10 09:24

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.
Posted By: Beker

Re: Variables - 02/03/10 13:47

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?

Posted By: MichaelGale

Re: Variables - 02/03/10 13:56

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.
Posted By: Beker

Re: Variables - 02/03/10 14:23

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
© 2024 lite-C Forums