Problem with Keyboard imput...
Hi,
I'm having trouble with the Keyboard input behavior...
When i want to enter en number > 100000, the attribute changed is bad...
When i enter a number < 100000, all is ok...
Any idea?
Thanks
I'm having trouble with the Keyboard input behavior...
When i want to enter en number > 100000, the attribute changed is bad...
When i enter a number < 100000, all is ok...
Any idea?
Thanks
Comments
if what is input is not in the numericalValue format for the attribute Type it will not process nor display
think of it this way: to the computer 100,000 is not a numberValue … it is a textString for a number
@};- MH
Well *I* laughed!
QS
:
DDr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
if i remember correctly someone from GS said it's Lua problem, and it'll be fixed when they start to use native code.
but, @semacfly reference > 100,000 and > 100000; 900000 and 90000 do display properly 8-|
@quantumsheep … well thankfully KB imp isn't utterly messed-up … then we would have to deal with cows as well as imps!
@};- MH
@Ultima :
I know that the display is 1e+09 (for exemple...), that's why i'm using floor function to display all my number correctly.
When i use the floor function, i sse that the number entered using Keyboard input behavior is not correct. And when i re-enter in the keyboard, the last number entered is not the same then before... strange
@quantumsheep :
LoL you're taking fun of me lol sorry for the eror
@MotherHoose:
The attribute type is "real"
Display text with the floor function (for all the 9 numbers) = 5,123,457,000
Display text for the attribute in the keyboard input (without any floor function) : 5.12346e+09
I'm a little lost on this issue
PS : I know that i'm using correctly the floor function, because in my other game all is OK (but i never used the keyboard input)
a laugh is nice, especially when peoples is talking math! So your typo helped us enjoy your post!
looks like the DisplayText is treating the realAttribute as type and not content
darn computer wants to do things its way and pay no attention to how you want things!
and so set in its way, wont change anything to the format you ask for!
if you are lost, imagine where those of us who never work with higher math functions are … :-&
@};- MH
I'm doing it with "text" attribute type... seems work... i'll let you know
Cheers! and Laugh is nice, i agree :P
Any Chef or Sous-Chef to confirm that?
Thanks