Created
November 1, 2013 15:42
-
-
Save clausd/7267304 to your computer and use it in GitHub Desktop.
The Interval - a Library of Babel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def text_to_number(text, n=1000) | |
'0.' + text[0..n].unpack('C*').map{ |i| "%02d" % i}.join('') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What language is this?