compound 0.1.1

A crate that calculates the value of the initial investment based on rates of return (daily, monthly, semi-annual, annual...)

Crate compound [] [src]

*********** Typical usage ***************

use compound;

fn main() { let percentages = [10., 11., 23., 34.]; let initial_investment: f64 = 1000.00; let balance = compound( &initial_investment, &percentages); println!("Your balance is {}", balance ); println!("The percentages were {:?}", percentages); }

major change: just noticed that primitives already implement the copy trait and therefore wouldn't mutate anything

Functions

compound