Skip to main content
Active reading.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

convert Convert string number to integer number

I have "1" "1" as a string, and I would like to convert it to decimal, 1as, as integer.

I tried charAt(), but it returns 49, not 1 integer.

soSo, what is required to convert"1" Stringconvert the "1" string to 1 integer?

convert string number to integer number

I have "1" as a string and I would like to convert it to decimal 1as integer.

I tried charAt() but it returns 49 not 1 integer

so, what is required to convert"1" String to 1 integer?

Convert string number to integer number

I have "1" as a string, and I would like to convert it to decimal, 1, as integer.

I tried charAt(), but it returns 49, not 1 integer.

So, what is required to convert the "1" string to 1 integer?

Post Closed as "Duplicate" by madth3, Shaggy Frog, Johan, Cole Tobin, Mike
Source Link
Chriss
  • 995
  • 2
  • 15
  • 22

convert string number to integer number

I have "1" as a string and I would like to convert it to decimal 1as integer.

I tried charAt() but it returns 49 not 1 integer

so, what is required to convert"1" String to 1 integer?