Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Round()

static double System.Xml.Xsl.Runtime.XsltFunctions.Round ( double value)
inlinestatic

Definition at line 195 of file XsltFunctions.cs.

196 {
197 double num = Math.Round(value);
198 if (value - num != 0.5)
199 {
200 return num;
201 }
202 return num + 1.0;
203 }

References System.Math.Round(), and System.value.

Referenced by System.Xml.Xsl.Xslt.QilGenerator.CompileGroupingSizeAttribute(), System.Xml.Xsl.Runtime.NumberFormatter.FormatItem(), System.Xml.Xsl.Runtime.XsltFunctions.Substring(), and System.Xml.Xsl.Runtime.XsltFunctions.Substring().