Read and write decimals