Skip to content

Handle negative decimals #117

@NeoStarkX

Description

@NeoStarkX

I am using this code

from text_to_num import alpha2digit
print(alpha2digit("The temperature is minus two point five", "en"))

and i expect to get

The temperature is -2.5

but what i get is

The temperature is -.5

it seems it has issue with negative decimal numbers.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions