Make use of length parameter in number()

The length parameter was added to number(), but it isn't actually used
(it still uses 2)