FAQ 
Calendar 


#1




Number of decimal places on Android 9 calculator?
I just accidentally discovered that on the Android 9 calculator, if you swipe across the total it adds decimal places. I swiped a few times on a number and got it up over 500 decimal places before quitting. Anyone know what the limit is?

#2




Hm, "double precision" type variables in computing are good to only about 15 or 16 decimal places.
Not sure how they could get to 500 decimal places accurately, or for that matter, why anyone would want an android calculator app to output at this level of precision. 
#3




I hit the "pi" button and checked, it seems to be correct at least to 1000 digits. That may be a special case for builtin constants, but I'd guess it uses some type of arbitrary precision library.

#4




If you have some means for checking that many digits, but want to rule out it just being for builtin constants, maybe try sqrt(2)?



#5




If any constants are built into Android, then sqrt(2) has got to be in the top three.

#6




pi and e probably are, but I doubt that sqrt(2) would come up enough more often than any other square root to make it worthwhile. But if you're worried about it, just use sqrt(3) or sqrt(17) or something.

#7




Try Cos(2). Pretty sure it's computing the numerical approximation.
Last edited by Chingon; 02102020 at 06:10 PM. 
#8




Quote:
At any rate, none of this is difficult. I wrote an arbitrary precision library a while back to learn how FFTs work. Millions of digits take just a fraction of a second even on a 20 year old computer. A modern phone that only has to work at human input rates is a piece of cake. 
#9




Well, of course it's computing the numerical approximation. Nevertheless, I checked and it's accurate to at least 500 places.



#10




Quote:
9.61904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761 9047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047 6190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190 4761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761 9047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047 6190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190 4761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761 9047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047 6190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190 4761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761 9047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047 6190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190 4761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761 9047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047 6190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190 4761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761 9047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047 6190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190 4761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761 9047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047 6190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190 4761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761 9047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047619047 6190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190476190 4761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761904761 90 
#11




And I'm just wondering if there is a hard cutoff on the number of digits it will display, or if it will keep going until memory runs out.

#12




I didn't mean to imply otherwise.

Reply 
Thread Tools  
Display Modes  

