diff options
| author | gonzo <gonzo@toniatuh.com> | 2023-05-19 22:28:10 +0200 |
|---|---|---|
| committer | gonzo <gonzo@toniatuh.com> | 2023-05-19 22:28:10 +0200 |
| commit | 2c380f8df666fcebd979511f33e7d72291b389cd (patch) | |
| tree | 0238209fa73cfa7e4c0a8a58b3ffd8426c20db60 /loans.h | |
| parent | 0751b55f611b889f63dfc2bc2705e7537703cb43 (diff) | |
| download | loan_calc-2c380f8df666fcebd979511f33e7d72291b389cd.tar.gz | |
moved from floats to doubles for added precision
Diffstat (limited to 'loans.h')
| -rw-r--r-- | loans.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -18,21 +18,21 @@ typedef struct loan { #pragma clang diagnostic pop /**** BULLET LOAN ****/ -contract *bullet_init(int n, int d, float r, float P); -float bullet_update(contract *); +contract *bullet_init(int n, int d, double r, double P); +double bullet_update(contract *); void bullet_free(contract *c); /**** STRAIGHT LINE ****/ -contract *sl_init(int n, int d, float r, float P); -float sl_update(contract *); +contract *sl_init(int n, int d, double r, double P); +double sl_update(contract *); void sl_free(contract *); /**** MORTGAGE ****/ -contract *mort_init(int n, int d, float r, float P); -float mort_update(contract *); +contract *mort_init(int n, int d, double r, double P); +double mort_update(contract *); void mort_free(contract *); /**** GENERAL LOAN STUFF ****/ -loan loan_init(loan_type type, int n, int d, float r, float P); -float loan_update(loan); +loan loan_init(loan_type type, int n, int d, double r, double P); +double loan_update(loan); void loan_free(loan); |
