div: added long division, fixed a few bugs

This commit is contained in:
2017-08-03 16:22:17 -04:00
parent 6f93ebcb24
commit e86841ea6e
4 changed files with 82 additions and 15 deletions

View File

@@ -22,7 +22,8 @@ double silly_to_double(silly); // convert a silly number into a double
silly silly_add(silly, silly); // addition
silly silly_sub(silly, silly); // subtraction
silly silly_mul(silly, silly); // multiplication
silly silly_div(silly, silly); // division (integer precision only :( )
silly silly_idiv(silly, silly); // division (integer precision)
silly silly_div(silly, silly); // division
char* silly_to_string(silly); // converts a fixed point value to a string (memory is now yours)
```