[Python-ideas] Python Numbers as Human Concept Decimal System

Mark H. Harris harrismh777 at gmail.com
Sun Mar 9 01:35:57 CET 2014


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....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140308/0da5ab2a/attachment.html>


More information about the Python-ideas mailing list