---
url: /flow/guide/scripting-reference/functions/numeric/extractnumber.md
---

# ExtractNumber

## Declaration

`Function ExtractNumber( const S : string) : Double`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := ExtractNumber('ab12.3de4'); //result is 12.34
Value := ExtractNumber('ABC123'); //result is 123
Value := ExtractNumber('$-123.05'); //result is -123.05
end;
```

## Description

Returns the numeric characters from a string. Decimal Points and negative signs are also returned.
