C # square, square root, fractional arithmetic reserved

Squaring

private double m;
private double n=Math.Pow(m,2.0);

 

Square rooter

System.Math.Sqrt (digital); square root.

 

double with two decimal places

Math.Round (variable 2);

Guess you like

Origin www.cnblogs.com/Anthony518/p/11570381.html