Created
August 18, 2017 07:35
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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