Double.FromText

From Xojo Documentation

Shared Method

Double.FromText(theText As Text, Optional locale As Xojo.Core.Locale) As Double

Converts a Text value that containing a number that can be represented as a double to a Double.

Notes

If no locale is specified, then Locale.Raw is used.

Sample Code

Convert a Text value to a Double:

Var userValue As Text
userValue = "123.45"

Var d As Double
d = Double.FromText(userValue)