Is there any advantage to using pow(x,2) instead of x*x, with x double?

前端 未结 8 901
清酒与你
清酒与你 2020-12-03 04:18

is there any advantage to using this code

double x;
double square = pow(x,2);

instead of this?

double x;
double square = x*         


        
8条回答
提交回复
热议问题