2.1.28, initiation update to PXT v5.28.24 (#54)

This commit is contained in:
Amerlander
2019-12-02 05:58:26 +01:00
committed by Peli de Halleux
parent 38a964516e
commit 5c114a0c57
1261 changed files with 50692 additions and 21604 deletions

View File

@ -0,0 +1,34 @@
# convert to text
Change the value of any [type](/types) into a text [string](/types/string).
```sig
convertToText(123)
```
## Parameters
* **value**: a value of some [type](/types) to convert to a [string](/types/string).
## Returns
* a [string](/types/string) that is a text representation of **value**.
## Example #example
Convert a boolean and a number value into strings and join them in a sentence.
```blocks
let myBoolean = false
let myNumber = 0
myBoolean = true
myNumber = 123
let myString = "It is " + convertToText(myBoolean) + " that " + convertToText(myNumber) + " is now a string!"
```
## Sea also #seealso
[parse int](/reference/text/parse-int),
[parse float](/reference/text/parse-float)