Code Documentation¶
-
exception
spa2num.converter.
Spa2NumLexiconException
¶
-
exception
spa2num.converter.
Spa2NumSyntaxException
¶
-
spa2num.converter.
to_number
(x)¶ Allows you to translate to integer numerical words spelled in spanish.
Text must be previously cleaned & removed extraneous words or symbols. Quantities MUST be written in a correct Spanish. The upper limit is up to the millions range. No decimal supported.
- Args:
An spanish spelled number.
- Returns:
Integer translated from the Spanish text string