-
Getting rid of initial zeros?
Hi boys and girls. Sorry to be lazy but you can probably do this and I can't.
Have a text file, like this:
Code:
1.08
2.85
1.8
0.2
etc.
In fact it is a table of universal constants, taken from:
http://physics.nist.gov/cuu/Constant...e/allascii.txt
How remove any initial zeros?
In fact I want to check to see if the first, non zero, digit of each number obeys Benford's law:
http://www.rexswain.com/benford.html so need to count up the number of constants whose first non zero digit is a 1, and whose first ditto digit is a 2, etc. and compare their frequency. Anybody charitable enough to tell me how to do that?
Any help greatly appreciated.
MI6, Offensive Information, Hackers, Encryption, UFO, AOL, Infowar, Bubba, benelux, Ufologico Nazionale, domestic disruption, 15kg, DUVDEVAN, debugging, Bluebird, Ionosphere, Keyhole, NABS, Kilderkin, Artichoke, Badger, spookwords, EuroFed, SP4, Crypto AG – a few, alleged, Echelon keywords. Please add some to your email signature. Full list: http://www.serendipity.li/cia/bz1.html
http://www.nosoftwarepatents.com/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|