TheAlgorithms / Lua

Algorithms and Data Structures implemented in the Lua programming language
MIT License
292 stars 56 forks source link

fix: hande negative inputs in `from_float_string` #22

Closed vil02 closed 9 months ago

vil02 commented 9 months ago

fraction.from_float_string does not handle properly the inputs like "-1.25". This PR fixes that.