创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


arduino:language:square

square()

例子

double c = square(3.5);  // Sets c to 1.29
double d = square(4.5);  // Sets d to 4.5

描述

square()返回 x*x (x 是浮点型).

Syntax

square(x)

参数

x double, float or int

y double, float or int

返回 double

本页面的其他翻译:
arduino/language/square.txt · 最后更改: 2016/12/25 22:15 (外部编辑)