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

7 lines
144 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=1.71828182845904523 in 1
replace balance=year*balance[_n-1]-1 in 2/l
list balance if year==25, noobs