Expand my Community achievements bar.

convert text to number

Avatar

Former Community Member
Suprisingly, I can't not find the formcalc function to convert text to a number. Do I have to use Javascript?
2 Replies

Avatar

Level 5
Use Floor(n1) in FormCalc where n1 stands for your text that needs number conversion.



Good luck,

SekharN

Avatar

Former Community Member
Thanks.



Actually, I just found out that if I have text field called "t1", I can simply use a FormCalc calculate directly off of the text field without having to convert it. For example, result = t1 * 5 will return a 100 if the text field "t1" contains the text "20".