long double
描述
86Duino 中支援 80-bit 扩展精度 (double extended) 的浮点数型别 long double
,double extended 格式的表示范围从 3.65E−4951 到 1.18E+4932,虽然它并不是被设计用来精确的储存资料,不过它能减少浮点数在运算时的溢位以及舍入误差,进而提升浮点运算的精确度,更多的详细资料请参考 x86 扩展精度格式。
范例
long double myVar;
long double sensorCalbrate = 1.117;
语法
long double var = val;
var
变数名称
val
指派给变数的值
本页由热血青年 LBU 译自英文版。
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.