Finished encoder changes for writing optional decimals