RT 希望高手指点 领导之命 着急!!!!!!!!!!

解决方案 »

  1.   


    byte[] b=二进制数组
    string a=  System.Text.ASCIIEncoding.UTF8.GetString(b);
    float f=float.Parse(a);
      

  2.   

    System.Text.ASCIIEncoding.UTF8.GetString()
      

  3.   

     (float)BitConverter.ToDouble(二进制数组 
    ,0);
      

  4.   

     BitConverter.ToSingle(二进制数组 ,0);方法很多。这个应该是最好。直接出来就是float
      

  5.   

    string s= "";
    uint num = uint.Parse(s, System.Globalization.NumberStyles.AllowHexSpecifier);
    byte[] floatVals = BitConverter.GetBytes(num);
    float f = BitConverter.ToSingle(floatVals, 0);byte[] bytes = { 0, 0, 0, 25 };
    if (BitConverter.IsLittleEndian)
        Array.Reverse(bytes);
    int i = BitConverter.ToInt32(bytes, 0);
      

  6.   

    类似这样    private void button1_Click(object sender, EventArgs e)
            {
                byte[] b = [00000111101010101010101101010101];
                string a=  System.Text.ASCIIEncoding.UTF8.GetString(b); 
                float f=float.Parse(a);
               textBox1.Text= Convert.ToString(f);
            }
      

  7.   

    byte[] b = System.Text.ASCIIEncoding.ASCII.GetBytes("00000111101010101010101101010101");
                float a = BitConverter.ToSingle(b, 0);
      

  8.   

     private void button1_Click(object sender, EventArgs e)
            {
                byte[] b = System.Text.ASCIIEncoding.ASCII.GetBytes("00000111101010101010101101010101"); 
                float a = BitConverter.ToSingle(b, 0);
                textBox1.Text= a.ToString()
            }会了吗?