NumberProd class | en_us.t[7639]

A numeric production. These can be either spelled-out numbers (such as "fifty-seven") or numbers entered in digit form (as in "57").

`class NumberProd : BasicProd`

Superclass Tree (in declaration order)

`NumberProd`
`BasicProd`
`object`

Subclass Tree

`NumberProd`
`numberPhrase(digits)`
`numberPhrase(spelled)`
`poundNumberPhrase(main)`
`spelledHundred(aHundred)`
`spelledHundred(aHundredPlus)`
`spelledHundred(hundreds)`
`spelledHundred(hundredsPlus)`
`spelledHundred(small)`
`spelledMillion(aMillion)`
`spelledMillion(aMillionAndSmall)`
`spelledMillion(millions)`
`spelledMillion(millionsAndSmall)`
`spelledMillion(millionsPlus)`
`spelledNumber(main)`
`spelledSmallNumber(digit)`
`spelledSmallNumber(teen)`
`spelledSmallNumber(tens)`
`spelledSmallNumber(tensAndUnits)`
`spelledSmallNumber(zero)`
`spelledThousand(aThousand)`
`spelledThousand(aThousandAndSmall)`
`spelledThousand(thousands)`
`spelledThousand(thousandsAndSmall)`
`spelledThousand(thousandsPlus)`

Global Objects

(none)

Summary of Properties

``

Inherited from `BasicProd` :
`isSpecialResponseMatch`

Summary of Methods

`getStrVal getval`

Inherited from `BasicProd` :
`canResolveTo getOrigText getOrigTokenList setOrigTokenList`

Properties

(none)

Methods

`getStrVal ( )` | `en_us.t[7650]`

Get the string version of the numeric value. This should return a string, but the string should be in digit form. If the original entry was in digit form, then the original entry should be returned; otherwise, a string should be constructed from the integer value. By default, we'll do the latter.

`getval ( )` | `en_us.t[7641]`

get the numeric (integer) value

TADS 3 Library Manual
Generated on 8/21/2012 from TADS version 3.1.2