Update numeric-scale.js

Fixed issues with wrong scaling if min=0 or max=0