number
Arguments
This function has no required arguments. When called without arguments, the function matches all numbers.
The arguments restriction_type, N1 and N2 are optional and are used to find numbers in a specific range. The restriction_type argument takes one of the following values:
If the restriction_type consists of mathematical symbols, they should be enclosed in quotes (">", "()", "!=", etc.).
If the restriction_type name consists of two or more words or contains a hyphen, it should also be enclosed in quotes ("not equal", "between or equal", "right-open").
The negative value of an argument should also be enclosed in quotes, e.g. number(less, "-3").
The function also supports optional named parameters:
-
allow_multiword : if the option is enabled, numbers written in several words (two hundred, one million) are treated as a single unit and correctly converted into a numerical value. Using this option may result in performance loss.
-
type:=numeral: matches numbers consisting of digits and symbols, permitted to use within numbers (e.g., dots, slashes etc.)
-
type:=digit: matches numbers consisting of digits only, without any symbols, permitted to use within numbers
-
type:=word: matches numbers written in words
-
type:=any: matches numbers written in both words and digits