microsoft / Recognizers-Text

Microsoft.Recognizers.Text provides recognition and resolution of numbers, units, date/time, etc. in multiple languages (ZH, EN, FR, ES, PT, DE, IT, TR, HI, NL. Partial support for JA, KO, AR, SV). Packages available at: https://www.nuget.org/profiles/Recognizers.Text, https://www.npmjs.com/~recognizers.text
MIT License
1.68k stars 431 forks source link

Information loss in parsed number value and result in scientific notation. #3105

Open CDirkx opened 1 year ago

CDirkx commented 1 year ago

Parsed numbers can be in scientific notation, and lose information as not all digits are included.

Example:

NumberRecognizer.RecognizeNumber("11111111111111122222222222", Culture.English); // 1.11111111111111E+25

Is there a way to retreive the full information from the result? (so the full "11111111111111122222222222").

Platform: .NET Microsoft.Recognizers.Text.Number 1.8.8

CDirkx commented 1 year ago

Seems related to an older issue: #2255