aragon / radspec

🤘 Radspec is a safe interpreter for Ethereum's NatSpec
MIT License
141 stars 36 forks source link

Helpers: precision improvements #81

Closed sohkai closed 5 years ago

sohkai commented 5 years ago

cc @schmidsi.

Improves the precision changes, such that any truncation to the fraction results in a ~.

Also makes the same fraction check more robust than the previous one.

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.009%) to 91.228% when pulling f0c32b93b1ff633102765f8a2b6be1a24842537c on precision-improvements into 35a446dbe22515e5aa12987001b6217a702a0bb8 on master.