All pastes #2052716 Raw Edit

Stuff

public ruby v1 · immutable
#2052716 ·published 2011-05-02 03:47 UTC
rendered paste body
#!/usr/bin/rubyclass Fixnum	def digit(n) # Returns digit in the 10 ^ n's place		((self % (10 ** n)) / (10 ** (n - 1))).to_i	endend