From 2c380f8df666fcebd979511f33e7d72291b389cd Mon Sep 17 00:00:00 2001 From: gonzo Date: Fri, 19 May 2023 22:28:10 +0200 Subject: moved from floats to doubles for added precision --- loans.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'loans.h') 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); -- cgit v1.2.3