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

◆ Pow10()

static long System.Globalization.TimeSpanParse.Pow10 ( int pow)
inlinestaticpackage

Definition at line 679 of file TimeSpanParse.cs.

680 {
681 return pow switch
682 {
683 0 => 1L,
684 1 => 10L,
685 2 => 100L,
686 3 => 1000L,
687 4 => 10000L,
688 5 => 100000L,
689 6 => 1000000L,
690 7 => 10000000L,
691 _ => (long)Math.Pow(10.0, pow),
692 };
693 }

References System.L, and System.Math.Pow().

Referenced by System.Globalization.TimeSpanFormat.FormatCustomized(), System.Globalization.TimeSpanParse.TimeSpanToken.NormalizeAndValidateFraction(), and System.DateTimeParse.ParseFractionExact().