C語言浮點數相加語法
printf("Temperature Channel %d = %6.2f ℃\n", index, (float)((temperature >>6) & 0x1ff) + (((float)(temperature & 0x3f)) * 0.015625));
文章標籤
全站熱搜
沒有痛苦 就沒有收穫
若內容對你有幫助,可以留言讓我知道哦~
有問題想要諮詢可以請至這裡連絡我哦 =>不會就放這邊
C語言浮點數相加語法
printf("Temperature Channel %d = %6.2f ℃\n", index, (float)((temperature >>6) & 0x1ff) + (((float)(temperature & 0x3f)) * 0.015625));