---
url: /flow/guide/scripting-reference/functions/conversion/floattostr.md
---

# FloatToStr

## Declaration

`Function FloatToStr( Value : Extended) : string`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
var MyAmount : double
begin
MyAmount := 123.45;
Value := FloatToStr(MyAmount); //Value will be equal to '123.45'
end;
```

## Description

FloatToStr converts a Float into a String data type. FloatToStr will not provide any formatting and the number will appear as is - this could result in lots of decimal places.

If you need to control the format of the resulting String use [FormatFloat](/flow/guide/scripting-reference/functions/formatting/formatfloat) function.
