Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save urmil0071/12000bebd1753d9d48d94cdaa87988f3 to your computer and use it in GitHub Desktop.
Save urmil0071/12000bebd1753d9d48d94cdaa87988f3 to your computer and use it in GitHub Desktop.
Write C Codes to generate decimal data from a binary32 string (x=0x41460000)
#include <Arduino.h>
void setup()
{
Serial.begin(9600);
uint32_t x=0x41460000;
float y=(*float*)&x;
Serial.println(x,10);
}
void loop()
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment