Integer fields are ideal for displaying whole numbers between a defined minimum and maximum.
Tip: See also, Basic Field Settings
Field Creation Form
Permutations to the integer field are the two options below, Minimum Value & Maximum Value. These obviously dictate, much like the text field, what numbers you can enter into the field on the admin end of things. Integers are under the Basic drop-down menu.
Content Entry Form
The integer field only has one method of content entry. In this box, the only allowed characters are whole numbers, it will not save if the number is in decimal format, use a decimal field for that purpose.
Default Liquid Code
The Edit Code section allows a user to edit how a field prints or functions. The default code for this type of field is found below.
For more information about code customization and the code editor itself, visit our Guide to the Snippet Editor.
Additional Resources & Information
Custom Fields: Liquid Template Fields - This article goes more in-depth on the Edit Code section and also uses the integer field.