mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-08-07 14:43:38 +00:00
22 lines
580 B
Plaintext
22 lines
580 B
Plaintext
---
|
|
title: Parse Float
|
|
sidebar:
|
|
label: Parse
|
|
order: 1
|
|
---
|
|
import SchemaInfo from '../../../../components/SchemaInfo.astro';
|
|
|
|
The `float.parse` processor takes a string and parses it as a float with the specified `base` and `bitSize`. This processor will return an error if the message being processed is not a string or if the string cannot be parsed into a float.
|
|
|
|
<SchemaInfo type="processor" id="float.parse"/>
|
|
|
|
### Example
|
|
|
|
This would parse the string payload as a 32 bit float and set the payload to that value.
|
|
|
|
```yaml
|
|
- type: float.parse
|
|
params:
|
|
bitSize: 32
|
|
```
|