title: Extracting mantissa and exponent from double in c#
body: <p>Is there any straightforward way to get the mantissa and exponent from a double in c# (or .NET in general)?</p>
  <p>I found <a href="https://jonskeet.uk/csharp/DoubleConverter.cs" rel="nofollow noreferrer">this example</a> using Google, but I'm not sure how robust it would be.  Could the binary representation for a double change in some future version of the framework, etc?</p>
  <p>The other alternative I found was to use System.Decimal instead of double and use the <a href="https://docs.microsoft.com/en-us/dotnet/api/system.decimal.getbits" rel="nofollow noreferrer">Decimal.GetBits()</a> method to extract them.</p>
  <p>Any suggestions?</p>