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

◆ CountDecimalTrailingZeros()

static int System.Buffers.Text.FormattingHelpers.CountDecimalTrailingZeros ( uint value,
out uint valueWithoutTrailingZeros )
inlinestatic

Definition at line 60 of file FormattingHelpers.cs.

61 {
62 int num = 0;
63 if (value != 0)
64 {
65 while (true)
66 {
67 uint num2 = value / 10;
68 if (value != num2 * 10)
69 {
70 break;
71 }
72 value = num2;
73 num++;
74 }
75 }
76 valueWithoutTrailingZeros = value;
77 return num;
78 }

References System.value.

Referenced by System.Buffers.Text.Utf8Formatter.TryFormat(), and System.Globalization.TimeSpanFormat.TryFormatStandard().