On Saturday, March 8, 2014 6:21:59 PM UTC-6, Mark H. Harris wrote:

Actually this is it, because I keep forgetting that repr(D) includes "Decimal " in the string, must 
use str()
>>> from pdeclib import *
>>> dscale(1010)
42
>>> pi=get_PI()
>>> sPI=str(pi)[:1002]
>>> for n in range(10):
      print(n, sPI.count(str(n)))
      
0 93
1 116
2 103
3 103
4 93
5 97
6 94
7 95
8 101
9 106
>>>  
      Anyway,  its just fun....