added silly conversion

This commit is contained in:
2017-07-30 18:39:10 -04:00
parent 428360db07
commit 10817f077c
4 changed files with 24 additions and 8 deletions

View File

@@ -12,6 +12,9 @@ Don't. The makefile only includes a test target, because I want to test my code.
```c
silly silly_zeros(); // creates a fixed point value of zero
silly make_silly(short, int, int); // make a silly number from the triple (negative?, before decimal, after)
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