ISibboI / evalexpr

A powerful expression evaluation crate 🦀.
GNU Affero General Public License v3.0
320 stars 52 forks source link

Add math::abs function #130

Closed LinuxHeki closed 1 year ago

ISibboI commented 1 year ago

This is a great idea! Could we add it in the way that it returns integers if the input value is integer? Since abs can be defined both on integers and floats.

LinuxHeki commented 1 year ago

Sure we can. This would probably require more than just one line of code.

LinuxHeki commented 1 year ago

Done! It was easier than I thought

ISibboI commented 1 year ago

Great thanks, I can take it from here.

ISibboI commented 1 year ago

If you want me to release this now, please just make a comment. Otherwise, I'd release it together with #131.