Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
CountDigits()
[1/2]
static int System.Buffers.Text.FormattingHelpers.CountDigits
(
uint
value
)
inline
static
Definition at line
38
of file
FormattingHelpers.cs
.
39
{
40
int
num = 1;
41
if
(
value
>= 100000)
42
{
43
value
/= 100000;
44
num += 5;
45
}
46
if
(
value
>= 10)
47
{
48
num = ((
value
< 100) ? (num + 1) : ((
value
< 1000) ? (num + 2) : ((
value
>= 10000) ? (num + 4) : (num + 3))));
49
}
50
return
num;
51
}
System.ExceptionArgument.value
@ value
References
System.value
.
System
Buffers
Text
FormattingHelpers
Generated by
1.10.0