better handling of long decimals