doob Joined: 01/06/07 Posts: 70 Posted: 08/08/11 13:48:56 Is Tango supposed to be able to convert a float to a string, formatted as hexadecimal, and then back to a float? The assert in the code below fails. float a = 3.55f; auto str = Format("{:x}", a); auto b = to!(float)(str); assert(a == b);
Is Tango supposed to be able to convert a float to a string, formatted as hexadecimal, and then back to a float? The assert in the code below fails.
float a = 3.55f; auto str = Format("{:x}", a); auto b = to!(float)(str); assert(a == b);
Author Message kris Joined: 03/27/04 Posts: 581 Posted: 08/09/11 17:37:24 it ought to, yes (though it will be limited to 64bits ~ no 80bit reals) doob Joined: 01/06/07 Posts: 70 Posted: 08/12/11 12:16:35 Ok, since it doesn't I'll report a bug. Thanks.
it ought to, yes (though it will be limited to 64bits ~ no 80bit reals)
Ok, since it doesn't I'll report a bug. Thanks.