A
A
Alexey Ivanov2017-05-21 14:38:36
Swift
Alexey Ivanov, 2017-05-21 14:38:36

How to convert from number to string?

how to convert number to string

var cena = 2000
var textCena = cena + ""

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RedHairOnMyHead, 2017-05-21
@sijuz

let str = "\(cena)"
let str = String(cena)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question