TI-BASIC Wiki
Advertisement


(84) :length(string)

Returns the length of a specified string. It will return the number of symbols in the string, not the number of characters. As such, length("sin(") will return 1, not 4.

location[]

  • The catalog

Example[]

:Prompt Str1
:Disp "STRING LENGTH:", length(Str1)

This prompts for a string, then returns the length of the string.

See Also[]

  • dim( - has this function in later calculators
Advertisement