Function Spellings Class

SpellThreeDigitInteger

Spells a number between 0 and 999 using English words.

Signature (Visual Basic / VBA)

Public Function SpellThreeDigitInteger( _
    ByVal vNumber As Variant _
    ) As Variant

Code Example

    SpellThreeDigitIntegre(112) = "One Hundred Twelve"
    SpellThreeDigitInteger(100) = "One Hundred"
    SpellThreeDigitInteger(34) = "Thirty-four"
    SpellThreeDigitInteger(5034) = "Thirty-four"

Parameters

Parameter Description
vNumber The number whose three least significant digits are to be spelled. Function returns Null if vNumber if Null or cannot be fixed up to a number.