FANDOM



:string(value)

This returns a string representation of a value. This exists because some functions, such as PtText and PxlText only accept strings.

However, for the functions that accept both strings and other values, such as Disp and Output, both value and the string version of value will be the same, as long as Pretty Print is off.

LocationEdit

n

  • Catalog
  • 2
  • String
  • Convert to String

ExamplesEdit

:PtText x^2,4,4     - creates an error
:PtText "x^2",4,4       - Prints "x^2" on the graph screen
:PtText string(x^2),4,4 - Prints "x^2" on the graph screen
:Disp x^2               - Prints x² on the IO screen if Pretty Print is on, else prints "x^2"
:Disp string(x^2)       - Prints "x^2" on the IO screen

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.