Skip to contents

An integer from -2147483647 to 2147483647. A double given for an integer field converts when it is a whole number in range.

Usage

type_integer(
  min = NULL,
  max = NULL,
  exclusive_min = NULL,
  exclusive_max = NULL,
  values = NULL
)

Arguments

min

Optional Integer: Smallest admitted value.

max

Optional Integer: Largest admitted value.

exclusive_min

Optional Integer: The value must be above it. Given with min, it raises r8_declaration_error.

exclusive_max

Optional Integer: The value must be below it. Given with max, it raises r8_declaration_error.

values

Optional Integer: The admitted values.

Value

An r8_field_type.

Examples

type_integer(min = 1L)
#> <r8 field type> integer [1, Inf)