Skip to main content

Hi,

I have an interactive text field that takes key values and sets them into a string variable by concatenating each key value. But the issue is that I want to set all clicked key values into INT not in STRING because I need to do some calculations on it after this.But I do not know how all digits are stored in numeric variables.


For Example:

when a user enters 5023 in the text field then I want intVariable to store each digit as it is(Currently possible to store only in a string)


Can anyone have a solution or any idea how to do it or any suggestion if there is something so that I can convert string to integer into Figma?

I also want to know how to do this. Right now I have a prototype set up so it’s using string variables to type numbers into an input field and then show the typed value on the next screen, however I want to also show the cost of that typed value on that next screen by writing an equation of my stringVariable times a mutliplier to show how much it is. But after researching I don’t think it’s possible in Figma right now.


Reply