擅长:python、mysql、java
<p>获取指针并将其类型转换为浮点指针:</p>
<pre><code>uint32 tmp = 1085256688;
float f;
f = *((float *) &tmp); // 5.490715
</code></pre>
<p>或使用工会:</p>
<pre><code>union test {
uint32_t u;
float f;
};
union test tmp;
tmp.u = 1085256688; // tmp.f == 5.490715
</code></pre>
<p>就你而言:</p>
<pre><code>SUS_Data.Longitude = *((float *) &Longitude);
</code></pre>