diff options
author | B. Watson <yalhcru@gmail.com> | 2016-01-16 19:23:57 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-01-16 19:23:57 -0500 |
commit | ddce52f2f6b09f6ada332c4061a3f55a490a886d (patch) | |
tree | 182b07b17ecb02a15955463ac92bf143859535da /bignum.h | |
parent | 044e5105b5bcffcc6875280627e37040c6482c9e (diff) | |
download | taipan-ddce52f2f6b09f6ada332c4061a3f55a490a886d.tar.gz |
cprintfancy_big() overhaul
Diffstat (limited to 'bignum.h')
-rw-r--r-- | bignum.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -28,15 +28,22 @@ /* zero */ #define BIG_0 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } -/* constant initializer for 1.005 goes here */ +/* TODO: calculate bank interest differently: this bignum + implementation is floating point, but I might swap it out + for an int-based one! */ +/* 1.005 (bank interest) */ #define BIG_1_005 { 0x40, 0x01, 0x00, 0x50, 0x00, 0x00 } /* bignum 100, used for score calculations in final_stats() */ #define BIG_100 { 0x41, 0x01, 0x00, 0x00, 0x00, 0x00 } -/* one million, one hundred million, one billion, one trillion */ +/* one thousand, one million, one hundred million */ +#define BIG_1K { 0x41, 0x10, 0x00, 0x00, 0x00, 0x00 } #define BIG_1M { 0x43, 0x01, 0x00, 0x00, 0x00, 0x00 } #define BIG_100M { 0x44, 0x01, 0x00, 0x00, 0x00, 0x00 } + +/* 10 million, one billion, one trillion */ +#define BIG_10M { 0x43, 0x10, 0x00, 0x00, 0x00, 0x00 } #define BIG_1B { 0x44, 0x10, 0x00, 0x00, 0x00, 0x00 } #define BIG_1T { 0x46, 0x01, 0x00, 0x00, 0x00, 0x00 } |