<div class="meta" robots="noindex">

</div>

Method

# Single.FromText

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2024r1. Please use `Single.FromString<single.fromstring>` as a replacement.

</div>

## Description

Converts a Text value that containing a number that can be represented as a <span class="title-ref">Single</span> to a <span class="title-ref">Single</span>.

This method is `shared</api/language/shared>`.

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

Convert a Text value to a \`Single\`:

``` xojo
Var userValue As Text
userValue = "123.45"

Var d As Single
d = Single.FromText(userValue)
```

## Compatibility

All project types on all supported operating systems.
