// ==========16 Convert decimal to floating point ===========
        private void button1_Click(object sender, EventArgs e)
            string hex = this.textBox1.Text.Trim();

            uint num = uint.Parse(hex,
            label3.Text = num.ToString();
            byte[] floatValues = BitConverter.GetBytes(num);

            float f = BitConverter.ToSingle(floatValues, 0);

            textBox2.Text = Convert.ToDecimal(f) + "";
        //======= Convert floating point to hexadecimal ===========
        private void button2_Click(object sender, EventArgs e)
            float f = Convert.ToSingle(textBox2.Text);
            byte[] bytes = BitConverter.GetBytes(f);// Convert floating point to byte type
            Array.Reverse(bytes);// Reverses the order of some elements in a one-dimensional array
            textBox1.Text = BitConverter.ToString(bytes).Replace("-", "");


design sketch :

©2019-2020 Toolsou All rights reserved,
Send love - A little romance for programmers VHDL—— Design of frequency divider Python Implementation of Hanoi Tower code It's over , Starting salary 30khtml+css+js Make a simple website home page QQ Login interface implementation Hill sorting of sorting algorithm ——c++ realization 【 Wechat applet learning 】 Netease music cloud code page implementation details Resume the 13th session python Blue Bridge Cup 2022 Solution to the 13th Blue Bridge Cup ( whole )