Extract new function MathLib::isDec() our of isInt()