nix_usinflation

United States of America Dollar inflation calculator
git clone https://0xdd.org/code/nix_usinflation.git
Log | Files | Refs | README | LICENSE

commit d128268ea9d70880d70a37464f9000a30cf9cf9f
parent fcde2b523d716a530f9a2a579a9373206c661218
Author: David DiPaola <DavidDiPaola@users.noreply.github.com>
Date:   Mon, 31 Dec 2018 21:49:29 -0500

slight code clarification

Diffstat:
Mmain.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -29,7 +29,8 @@ main(int argc, char * argv[]) { } float ratio = DATA[end_year-DATA_STARTYEAR] / DATA[start_year-DATA_STARTYEAR]; - printf("%G" "\n", ratio * start_amount); + float end_amount = ratio * start_amount; + printf("%G" "\n", end_amount); return 0; }