Working with a specific static site generator?
Customize CloudCannon's documentation to suit your SSG.
Great! We'll show you documentation relevant to .
You can change this any time using the dropdown in the navigation bar.
These inputs are for editing numerical values in your data.
Single line input field for integers or decimals.
Number inputs are shown for inputs configured with the type number
, or input keys matching:
A combination number and range input field for integers or decimals.
Range inputs are shown for inputs configured with the type range
. This input requires step
, min
and max
options.
Number input options are configured with options
inside an _inputs
entry.
The lowest value in the range of permitted values.
The greatest value in the range of permitted values.
A number that specifies the granularity that the value must adhere to, or the special value any
, which allows any decimal value between max
and min
.
Set how an 'empty' value will be saved. Does not apply to existing empty values. Can be one of the following:
number
- an empty value for this input will be stored as 0
(default).
null
- an empty value for this input will be stored as a null value. This does not apply to TOML files.
Documented below are the valid formats for number and range inputs.
The lists of examples are non-exhaustive.
Binary and hexadecimal numbers will be converted to base-10 integers when loaded into the Data Editor
Empty/null value:
Whole base-10 integers (unquoted):
number: 123456
number: -123456
number: 123456e78
number: 123456e+78
number: 123456e-78
Floating point numbers (unquoted):
number: 123.456
number: -123.456
number: 123.456e78
number: 123.456e+78
number: 123.456e-78
Binary integers (unquoted):
number: 0b11110001001000000
Hexadecimal integers (unquoted):
Whole base-10 integers (unquoted):
number = 12346
number = +123456
number = -123456
number = 123_456
Floating point numbers (unquoted):
number = 123.456
number = +123.456
number = -123.456
number = 123.456e78
number = 123.456E78
number = 123.456e09
number = 123.456e+78
number = 123.456e-78
number = -123.456e78
number = 123_456.789_012
Hexadecimal numbers (unquoted):
Octal numbers (unquoted):
Hexadecimal numbers (unquoted):
number = 0b11110001001000000
Null value:
Base-10 integers (unquoted):
"number": 123456
"number": -123456
"number": 123456e78
"number": -123456e78
Floating-point numbers (unquoted):
"number": 123.456
"number": -123.456
"number": 123.456e78
"number": 123.456E78
"number": 123.456e+78
"number": -123.456e78