I'd like to use some hexa floating point constants with exponents in C# as it is allowed in c++ For example: 0x1p+53 or 0x1.dcd651ep+29
Can't find a way how to translate this to C#. I'm using VS2019
BTW i'm aware of the solution posted here with a workaround with C.Math lib (ldexp) but I'm using .net 5 and I can't rely on a .net 4.x lib.
look like there's no other way than convert and use decimal values instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.