Skip to content Skip to footer navigation
You are reading the Statamic 6 Alpha docs. πŸ‘€

Float Fieldtype

The float fieldtype is a text-style input that only accepts floats (numbers) and has increment and decrement controls.

Screenshot of Float Screenshot of Float
The Float Fieldtype in action!

Overview#

The float fieldtype is essentially an HTML5 input with type="number". Very similar to the Integer fieldtype, but it allows decimal numbers.

Data Storage#

Stores a float – a decimal number.

Options

append

string
Add text after (to the right of) the float input.

prepend

string
Add text to the beginning (to the left of) the float input.

placeholder

int
Set a default placeholder value.

min

int
Set the minimum allowed value.

max

int
Set the maximum allowed value.

step

int
Set the interval between valid numbers.