fix getDecimalPlaces function not accounting scientific notation