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

◆ XPathRound()

static double System.Xml.XmlConvert.XPathRound ( double value)
inlinestaticpackage

Definition at line 1003 of file XmlConvert.cs.

1004 {
1005 double num = Math.Round(value);
1006 if (value - num != 0.5)
1007 {
1008 return num;
1009 }
1010 return num + 1.0;
1011 }

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

Referenced by System.Xml.Xsl.XsltOld.NumberAction.NumberingFormat.FormatItem(), MS.Internal.Xml.XPath.NumberFunctions.Round(), and MS.Internal.Xml.XPath.StringFunctions.Substring().