Improved 'getNumber', now supports decimal numbers