<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Float assigns are zero on Cortex M4</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/30726/float-assigns-are-zero-on-cortex-m4</link><description> 
Using C in Keil, WITH FPU support turned on, assigns to variables
of Float type are coming up as zero. Assigns from constants end up as
zero. 

 
For example: 
int16_t myInt=0x1234; 
float myFloat; 

 
myFloat= (float)myInt; //assigns to zero 
myFloat</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator></channel></rss>