Use repr instead of %.17f to guanrantee float precision preservation.