Skip to content

Kirby 6.0.0

Str::float()

Convert the value to a float with a decimal point, no matter what the locale setting is

Str::float(string|int|float|null $value): numeric-string|null

Parameters

Name Type Default
$value stringorintorfloatornull no default value

Return types

numeric-stringornull

Parent class

Kirby\Toolkit\Str