Skip to content

EnglishWordsToNumberConverter.cs errors for unrecognized number words #1571

@O-Russell

Description

@O-Russell

Hi!

This is not an issue but more of a suggestion to do with .ToNumber().

Currently it throws an error if it doesn't unrecognized, which is fine but for me I just need to know if the word will convert into a number, rather than getting the numerical value itself.

So in my case returning a null value would indicate it's not a number word. Maybe adding a Try version of the ToNumber would be a good idea?

Just thought I'd pop in my 2 cents while using the package :D

PS. Sorry if this is the wrong location for this request/idea, I'm still fairly new to using github!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions