division: added integer division (because i can't figure out how to do it better

This commit is contained in:
2017-07-31 15:55:01 -04:00
parent 6bcacabc3b
commit 6f93ebcb24
4 changed files with 33 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ 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 :( )
char* silly_to_string(silly); // converts a fixed point value to a string (memory is now yours)
```