added functions to round numbers to decimals (mostly for easier display); tightened 'dup'