Real number options accept base ten numbers with optional fractional components. Additionally, leading zeros are ignored and numbers can be specified in scientific notation using 'e' syntax. Commas or place delimiters are not supported.

The accepted range and interpretation depends on the context of the option.

Option set to a finite number
--switch=0
--switch=20.5
--switch=-3E-1

In some contexts number options may accept undefined values. This indicates to the program that the option was set by the caller but not to a specific value. This is commonly used to indicate an explicitly infinite value.

Undefined values
  • An empty value

  • The word undef

  • The word undefined

  • The word inf

  • The word infinity

  • The word mvc

Option set to undefined
--switch
--switch=undef
--switch=Undefined
--switch=inf
--switch=INFINITY
--switch=mvc