summaryrefslogtreecommitdiffstats
path: root/loans.h
diff options
context:
space:
mode:
authorgonzo <gonzo@toniatuh.com>2023-05-19 22:28:10 +0200
committergonzo <gonzo@toniatuh.com>2023-05-19 22:28:10 +0200
commit2c380f8df666fcebd979511f33e7d72291b389cd (patch)
tree0238209fa73cfa7e4c0a8a58b3ffd8426c20db60 /loans.h
parent0751b55f611b889f63dfc2bc2705e7537703cb43 (diff)
downloadloan_calc-2c380f8df666fcebd979511f33e7d72291b389cd.tar.gz
moved from floats to doubles for added precision
Diffstat (limited to 'loans.h')
-rw-r--r--loans.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/loans.h b/loans.h
index 88bbb41..aed283e 100644
--- a/loans.h
+++ b/loans.h
@@ -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);