Fluxxdog
Active member
I see that two people voted "yes" for this. Now that Jason made ASH use longs and doubles internally and I fixed the I/O such that we can actually get such numbers into ASH with full precision, I believe this is sufficient for all the use cases people have presented.
We still need to store Meat as a long and change all the places that we parse or manipulate Meat internally to not use ints as intermediate values and such, but that's another feature request. See, for example, Ludwig von Miser's report on the G_D KoLmafia thread.
Is there any reason I can't close/reject this Feature Request now? Got any realistic Use Cases that longs and doubles can't handle?![]()
Code:
float sum,points,avg;
foreach x in $ints[2,2,3,4,5]{
sum+=x;
points+=1;
avg=sum/points;
print("Total: "+sum+" - Points: "+points+" - Average: "+avg);}
Total: 2.0 - Points: 1.0 - Average: 2.0
Total: 4.0 - Points: 2.0 - Average: 2.0
Total: 7.0 - Points: 3.0 - Average: 2.3333333333333335
Total: 11.0 - Points: 4.0 - Average: 2.75
Total: 16.0 - Points: 5.0 - Average: 3.2