>>208529You seem confused about how floating point works. I suggest you read
https://en.m.wikipedia.org/wiki/Double-precision_floating-point_format .
>after day 52>Lol, wtF? Keep up here. The sum is (2^n+1)-1, where n is the number of days. This number is not representable in IEEE floating point beyond 2^52, so if you're summing (like every algorithm in this thread so far) you will sum wrong because your sum (which is an integer) is no-longer representable to the nearest integer.
>>208529>So you want to display $2,123123123 to the end user? You supply calculator for free?You put the decimal point in with sprintf, my ESL friend.