I need to convert some C code (which ran on a Linux machine) to .Net and find some long double operations. These are not special operations, but just some multiplications and divisions that end with a lot of decimal places, it seems that the type was used only because of its size.
What would you do to convert the code? I think, just multiply the values ββand split at the end to find out if this helps, since the code returns short values ββat the end anyway, plus I donβt know if the source binary really used the whole size, a long double can provide or if it just used a common 64-bit dual under the hood.
If you don't think this is a good idea, do you know of any class or structure that you can use to wrap and model a long double? Creating a shell in C / C ++ and calling it from .Net is "impossible."
source share