Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / text command interferes with stored double floats

Author
Message
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Mar 2010 12:25 Edited at: 9th Mar 2010 16:42
The arithmetic problems with double floats I reported on the following thread may be something to do with the use of the text command and not the arithmetic algorithm used.

Edit Forgot the link! Here it is:

problems with double floats

Try the following code, once with the text command commented out, and once with it included. Then compare the printed results.

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 9th Mar 2010 14:33
Guess again:



It seems the problem is with with str$.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Mar 2010 22:44
Quote: "Guess again:"


And again:



Bug hunting is fun.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Mar 2010 23:53
And again ... again.

Any more guesses Benjamin?



Uncomment the first line and compare the results.

Now what exactly is the common feature here?
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 10th Mar 2010 01:37
It seems to happen when you call a function that returns a value:

Login to post a reply

Server time is: 2024-04-19 22:17:06
Your offset time is: 2024-04-19 22:17:06