Posted 05 July 2014 - 05:16 PM
So, obviously I need help with the String API lol.
The 2 main things I'm hoping to find are a way to measure the length of a string, and a way for a computer to determine what character is in a given location within the string.
My objective is to take a large number, led by the arbitrary number 1, and create a while loop that breaks off the last 2 digits of the number, turns each pair into alpha-numerics (they were originally put into the number as alpha-numerics, using the Key api) until all that remains is said arbitrary number 1, and the original input has been strung together. But I need the computer to know the length of the number, and I need a way to determine the value of the last 2 digits lol.
The number is given to a function, via arguments, and then pulled into the function using "input = {…}"
and then clearly the while loop would begin as "while input ~= 1 do"
… After that point I'm simply missing the two string functions I need, and a little bit of creative testing lol
Any help would be appreciated.
Sincerely,
digitalEntity
The 2 main things I'm hoping to find are a way to measure the length of a string, and a way for a computer to determine what character is in a given location within the string.
My objective is to take a large number, led by the arbitrary number 1, and create a while loop that breaks off the last 2 digits of the number, turns each pair into alpha-numerics (they were originally put into the number as alpha-numerics, using the Key api) until all that remains is said arbitrary number 1, and the original input has been strung together. But I need the computer to know the length of the number, and I need a way to determine the value of the last 2 digits lol.
The number is given to a function, via arguments, and then pulled into the function using "input = {…}"
and then clearly the while loop would begin as "while input ~= 1 do"
… After that point I'm simply missing the two string functions I need, and a little bit of creative testing lol
Any help would be appreciated.
Sincerely,
digitalEntity