"dini_FloatSet" - decimal place from inputtext.
#2

That is a float precision issue. The problem is that even if you save it as 1.1 it will still load as 1.0999.

You can however save the inputtext as string. Use sscanf to verify the validity of the input (basically like now) but instead of saving the value variable, you can save the content of inputtext as string.
You'll still be able to load it as Float, but like I said it will most likely still load as 1.0999.
Reply


Messages In This Thread
"dini_FloatSet" - decimal place from inputtext. - by CherryMond - 01.04.2018, 21:03
Re: "dini_FloatSet" - decimal place from inputtext. - by NaS - 02.04.2018, 08:33

Forum Jump:


Users browsing this thread: 1 Guest(s)