Number
The Number generator type supports the following constructors:
-
(Number number)
-
(String number)
-
(Number number, Number gender)
-
(String number, Number gender)
-
(Number number, Boolean play.full)
-
(String number, Boolean play.full)
-
(Number number, Boolean play.full, Number gender)
-
(Number number, Boolean play.full, Number gender)
The three parameters are:
-
Number—Any Number object (for example; Integer, Long, Float, Double, BigInteger, BigDecimal) or String object defining the number to be played back.
-
Gender—When the number must be played back in a specific gender context, this parameter specifies the context. Valid values are 0 for neutral, 1 for male, and 2 for female.
Note | If the language associated with the call does not behave differently based on gender, this parameter is ignored. |
-
Play.full—Plays the number in full format if this optional Boolean argument is true or omitted. (For example, “709” is played as “Seven Hundred and Nine”.) Otherwise, the number plays in brief format. (For example, “709” is played as “Seven Oh Nine”.)
Note | If the number is played in full format, the maximum number supported is +/- 999,999,999,999. |