ethereum / solidity-examples

Loose collection of Solidity example code
MIT License
532 stars 161 forks source link

Create Math contract #43

Closed androlo closed 6 years ago

androlo commented 6 years ago

Strings only contain validation at this point, which has freed up some time. This extra time is put into a Math library instead. The Math library initially has methods for doing exact arithmetic with int and uint types. These functions are guarded against overflow, as well as the ambiguities of INT_MIN = -2**255.