spiegel-keyman/web/docs/engine/reference/util/toFloat.md
Marc Durdin 6c145cb775 refactor(web): move web engine help to app repo
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
2024-10-31 11:00:06 +07:00

387 B

title
toFloat

Summary

Floating conversion with default.

Syntax

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

...