[Edu-sig] Re: (financial calculation) - using units
Kirby Urner
urnerk at qwest.net
Tue Feb 15 23:21:37 CET 2005
> > def future_value(iday,cday,ivalue,cvalue,years):
> > days_invested=(cday-iday).days
> > year_periods=365/days_invested
>
> Bothered me (too), the year_periods should be of a time-dimension.
>
Wasn't a bug though. I used http://support.microsoft.com/?kbid=123198 to
check Arthur's figure for average growth rate and it was correct.
> BTW, how does one express units of measure in Python/programming?
There'd be ways. MathCad has this built in -- cool feature. Mathematica
too, plus something about accuracy, as you're probably aware.
The new decimal type has thread-specific accuracy, but I'm not up on how to
use it. Perhaps I'll learn at Pycon. Just made my plane rez a couple hours
ago. My wife is coming along (to DC, not to Pycon).
Kirby
More information about the Edu-sig
mailing list