Make use of length parameter in number()

The length parameter was added to number(), but it isn't actually used
(it still uses 2)
Merge pull request #1 from michaelstephendavies/master

Make use of length parameter in number()