You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While extremely large numbers (like the mass of the sun), are output in metric using scientific notation, inputs are not recognized as scientific notation and instead must be directly entered as a decimal.
This shows the method by which an input must be given in order to elicit a conversion. However, since no right-minded person would text the mass of the sun over Discord in such a way, we should expect never to make such a conversion. Instead, we should expect to find scientific notation.
Example Failure Cases
The form A.BCeD
The form A.BCe+D
The form A.BC*10^D
The form A.BC*!0^+D
Other similar forms exist and can (and perhaps should) be supported.
Proposed Solutions
Expand the regex for finding numbers, and add any addition "pythonizing" between the string catching and float conversion (current "pythonizing" consists of a forced conversion from the comma to the period as radix)
Import a library for parsing numbers from strings
Potential Related Issues
No idea what sort of licensing requirements or such would come with adding a library
The text was updated successfully, but these errors were encountered:
Description
While extremely large numbers (like the mass of the sun), are output in metric using scientific notation, inputs are not recognized as scientific notation and instead must be directly entered as a decimal.
This shows the method by which an input must be given in order to elicit a conversion. However, since no right-minded person would text the mass of the sun over Discord in such a way, we should expect never to make such a conversion. Instead, we should expect to find scientific notation.
Example Failure Cases
A.BCeD
A.BCe+D
A.BC*10^D
A.BC*!0^+D
Other similar forms exist and can (and perhaps should) be supported.
Proposed Solutions
Potential Related Issues
The text was updated successfully, but these errors were encountered: