iOS how to convert double to text

Hi

Im starting using Xojo for iOS development, but i found some difference with DESKTOP (of course)

My questions is; if i want to convert doble value to text how should be?

On desktop is mytext.text = str(12.9)

In iOS how will be?

Thanks

dim d as double = 3.14
dim t as text = d.ToText

dim d as double = 12.9 dim t as text = d.toText

Michel may have something in his iOSWrapper to make this more like the old method: https://github.com/Mitchboo/XojoiOSWrapper

Edit: Beaten by the Tekinay

Hey guys

Nice very easy thanks for the help

FYI, you can also format the double with something like this:

t = d.ToText( Xojo.Core.Locale.Current, "#,##0.00" )

[quote=292924:@Gavin Smith] dim d as double = 12.9 dim t as text = d.toText

Michel may have something in his iOSWrapper to make this more like the old method: https://github.com/Mitchboo/XojoiOSWrapper

Edit: Beaten by the Tekinay[/quote]

Indeed, Xojo iOSWrapper offers Format, and Str, just like the OP would have done.