姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /
树莓派
Arduino
MicroPython
micro:bit
创客笔记 (服务详情)
百科帮助
相关链接
double c = trunc(-3.5); // Sets c to -3 double d = trunc(2.7172); // Sets d to 2
trunc()返回不大于x绝对值的最近的正数。
trunc(x)
x double, float or int
返回 double