Number Prompt Literals
The number prompt literal is always of type Prompt.
NumberPrompt:
NumberPromptDeclarator [ArgumentList]
NumberPromptDeclarator: one of
n N
Number prompts correspond to the spoken number representation of the specified arguments. There cannot be more than three arguments in the ArgumentList and the supported combination are listed in Table.
1st Argument |
2nd Argument |
3rd Argument |
Number | ||
Number |
Full Format Flag | |
Number |
Gender | |
Number |
Full Format |
Gender |
The Number argument must be of type String or a java.lang.Number type (for example, integral or floating-point). The Full Format Flag argument must be of type Boolean and must specify to play the number in full format (that is, 709 is played as "Seven Hundred and Nine"); otherwise, plays the number in brief format that is, 709 becomes "Seven Oh Nine"). The Gender argument must be either a predefined gender constant (that is, MALE, FEMALE, or NEUTRAL) or an int type that results to 0 for neutral, 1 for male and 2 for female.
This form also assumes the current language of the context unless the prompt is further qualified using the @ operator.
N[2345.3D]
N["12" + '.' + "23"]
N[0x233, false]
N["1223", Boolean.TRUE]
N[45, MALE]
N["3.23", NEUTRAL]
N[11, 1]
N[2000000, false, FEMALE]
N[-2e23, Boolean.TRUE, 1]
N["29.0002", true, MALE]