1-Visitor
April 5, 2019
Question
Is there a method to convert a string to integer and vice versa?
- April 5, 2019
- 1 reply
- 2014 views
I'm looping through my array of chapter tags and comparing an attribute value to my loop counter and I don't know if my attribute is a string or integer. Because my document uses a double digit numbering system, attribute value 05 is equal to counter loop value 5. Any way for me to convert 05 to a string so when I compare them, they are not equal?
Also, I'm confused as to why I got an output of 566 when I output 5.00102. See the attached screen shot.
Thank you for all and any help!

