2021-07-05 12:58 AM
Hi everyone,
I have a textarea wilcard which display a decimal value
I'd like to convert this value into a decimal var.
double tmpVal = atof((const char*)wildcardText.getWildcard()) isn't getting the decimal number
thanks !
Solved! Go to Solution.
2021-07-08 01:40 AM
Hello Emilmart,
It's actually difficult to convert proper numbers from a wildcard, especially decimal values.
A simple way to fix your problem is simply to store your float value in a "buffer"/variable. Because if the value is displayed with a TextArea, it means that your code already knew this value before giving it to the wildcard.
/Alexandre
2021-07-08 01:40 AM
Hello Emilmart,
It's actually difficult to convert proper numbers from a wildcard, especially decimal values.
A simple way to fix your problem is simply to store your float value in a "buffer"/variable. Because if the value is displayed with a TextArea, it means that your code already knew this value before giving it to the wildcard.
/Alexandre