我找不到如何更改8.85 x 10 ^ -12 -----> pow(base,exponent)
这是我的代码:
#include <math.h>
float Value = 8.85 * pow(10,-12);
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println(Value);
}
我的输出:
0.00
要使用%e
格式打印浮点值,
printf(“Value %e”, Value)
%e
浮点或双指数格式
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句