RosettaCodeData/Task/Pathological-floating-point-problems/Stata/pathological-floating-point-problems-2.stata

7 lines
133 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
clear
set obs 26
gen year=_n-1
gen balance=exp(1)-1 in 1
replace balance=year*balance[_n-1]-1 in 2/l
list balance if year==25, noobs