Advertising sustains the DA. Ads are hidden for members. Join today

Number module overview

Last updated on
11 March 2021

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

This documentation needs work. See "Help improve this page" in the sidebar.

The Number module defines various numeric field types for the Field module. Numbers can be in integer, decimal, or floating-point form, and they can be formatted when displayed. Number fields can be limited to a specific set of input values or to a range of values.

Numeric field types

Decimal

Allows exact decimal values.

Float

Allows floating-point values. Floating-point values represent approximate decimal values.

Integer

Allows users to enter whole numbers, such as years (e.g. 2012) or values (e.g. 1, 2, 5, 305). It does not allow decimals.

Help improve this page

Page status: Needs work

You can: