union is like a struct except that all its members share the same memory
so when you assign a value to float, the corresponding char has a value, The reverse is also true
The rest is nothing more than how the 4 bytes of int are converted to binary and how the 4 bytes of float are converted to binary
is the most basic in the book, simply understand, know the principle is easier to understand, can be written really no need