I was working on a way to determine the length of the decimal part of a number when I discovered that different constants have different internal lengths.
Here's the code I used:
prgmDLT :Ans→B :1→θ :-1→A :While θ :A+1→A :not(not(fPart(10^(A)fPart(B→θ :End :A
When I ran the code 1/3:prgmDLT from my home screen, it returned 14.
When I ran the code ∏:prgmDLT, it returned 13. This made sense, because I'm only counting the decimal places, and 1/3 has no integer part.
Here's what confused me:
When I ran the code e:prgmDLT, it returned 12. This indicates either a bug in my code, or that e is stored with fewer decimal places than ∏.
Can anyone explain this?
Update: I tried running rand:prgmDLT, and I occasionally got numbers that returned 15. Should that happen ever? I had thought that the internal size was 14 digits…