short

A 16 bit integer.

Optional Parameters

  • Value range constraint - short( min, max )

An optional range can be specified to a short in order to specify a restriction on permitted values. The values for min and max can be a numeric value or * to indicate wildcard maximum or minimum permitted value.

Examples

  • short(10,100) A number between 10 and 100
  • short(*,0) A number between -32,768 (min 16 bit number) and 0.
  • short(10,*) A number between 10 and 32,767 (max 16 bit number)