strstr() doesnt recognise scientific notations
Posted: Mon May 30, 2022 7:13 pm
Not sure this is necessarily a bug, but worth a notice anyway.
As you can see, when using StrStr() Hollywood fails to recognize scientific notation e format, and result of this one is strangely "2.3e" which makes no sense.
Since the idea with StrStr() to my understanding is specifically to change a number into a string form, it would make sense it would take into notion the scientific notation format e when doing this "up to x decimals" change since the result is clearly wrong.
Code: Select all
string = 2.3e-5
newstring = StrStr(string, 2)
DebugPrint(newstring)
Since the idea with StrStr() to my understanding is specifically to change a number into a string form, it would make sense it would take into notion the scientific notation format e when doing this "up to x decimals" change since the result is clearly wrong.