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

◆ ParseFraction()

static bool System.DateTimeParse.ParseFraction ( ref __DTString str,
out double result )
inlinestaticprivate

Definition at line 716 of file DateTimeParse.cs.

717 {
718 result = 0.0;
719 double num = 0.1;
720 int num2 = 0;
721 char current;
722 while (str.GetNext() && IsDigit(current = str.m_current))
723 {
724 result += (double)(current - 48) * num;
725 num *= 0.1;
726 num2++;
727 }
728 return num2 > 0;
729 }
static bool IsDigit(char ch)

References System.DateTimeParse.IsDigit(), and System.str.

Referenced by System.DateTimeParse.Lex(), and System.DateTimeParse.ParseISO8601().