Skip to main content
Emilmart
Associate III
July 5, 2021
Solved

get decimal value from wildcard textbox

  • July 5, 2021
  • 1 reply
  • 663 views

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 !

This topic has been closed for replies.
Best answer by Alexandre RENOUX

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

1 reply

Alexandre RENOUX
Alexandre RENOUXBest answer
Visitor II
July 8, 2021

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