In this question, Bill The Lizard asks how to display the binary representation of a float or double.
What I\'d like to know is, given a binary string of the appropr
string bstr = "01010101010101010101010101010101"; long v = 0; for (int i = bstr.Length - 1; i >= 0; i--) v = (v << 1) + (bstr[i] - '0'); double d = BitConverter.ToDouble(BitConverter.GetBytes(v), 0); // d = 1.41466386031414E-314