|
![]() |
||||||||||||||
Primitive Data Types TutorialConversions to String TypeFunction asString(x) converts any non-string value x to String. It converts a value x to its string representation, following the Wafl syntax. Function asChar(x) converts an Integer to a string consisting of a single character with a given ASCII code. Function asChar(x) converts logical value true to a string value "T" and logical value false to a string value "F". Source code:{# asString(3), asString(3.14), asString(true), asString(false), asChar(65), asChar(65.7), asChar(true), asChar(false) #} Result:{# "3", "3.140000", "true", "false", "A", "B", "T", "F" #}
|
|
||||||||||||||
© 2006 Saša Malkov | |||||||||||||||