mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 00:45:32 +00:00
Note: build.sh updated to make sure that test:help build action:target doesn't also call test.sh by adding `:_all` meta-target. Note: CI will need a new help-keyman-com.sh build step to deploy web engine help. Fixes: #12347
32 lines
387 B
Markdown
32 lines
387 B
Markdown
---
|
|
title: toFloat
|
|
---
|
|
|
|
## Summary
|
|
|
|
Floating conversion with default.
|
|
|
|
## Syntax
|
|
|
|
```c
|
|
keyman.util.toFloat(s, dflt);
|
|
```
|
|
|
|
### Parameters
|
|
|
|
`s`
|
|
: Type: `string`
|
|
: Numeric string.
|
|
|
|
`dflt`
|
|
: Type: `number`
|
|
: Default value if parse is unsuccessful.
|
|
|
|
### Return Value
|
|
|
|
`number`
|
|
: The string's conversion to a numeric value, or the default value if unsuccessful.
|
|
|
|
## Description
|
|
|
|
...
|