姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /
树莓派
Arduino
MicroPython
micro:bit
创客笔记 (服务详情)
百科帮助
相关链接
float a = sq(1); // Sets a to 1 float b = sq(-5); // Sets b to 25 float c = sq(9); // Sets c to 81
求平方值,结果总是正数。例如, -1 * -1 = 1.
sq(value)
value int or float
返回 float