Number -> Text


112
views
1
12 weeks ago by
I'm looking for the "Number -> Text" function but couldn't find it.  What's it called?  (I was guessing that it might be called "show" or "toText".)
Community: CodeWorld

1 Answer


3
12 weeks ago by
The function you're looking for is called printed.  For example:

program = drawingOf(text(printed(sqrt(2)))​
Thanks!  That worked for me.  Is there a list of all of (or perhaps just the most used) functions somewhere?
written 12 weeks ago by Tad Doxsee  
The easiest way to get a list of all the known functions is to press Ctrl-Space or Shift-Space on a blank line in the editor.  There's also a whole-page description at https://code.world/doc/Prelude.html (and a link to it at the end of the Guide).  I'm working on more reference materials that summarize just the most commonly used functions, but I don't have anything available yet.
written 12 weeks ago by Chris Smith  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »