I would like to convert float values to IEEE754 Single precision 32-bit Hex values in the following site on Arduino. https://www.binaryconvert.com/result_float.html?decimal=051046049048
float f = 3.10;
byte hex[4] = {0};
byte FloatToHex(float f){
.......
}
How can I create a function like this? It's okay if the format is different.