Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Number.Grisu3 Class Reference

Static Public Member Functions

static bool TryRunDouble (double value, int requestedDigits, ref NumberBuffer number)
 
static bool TryRunHalf (Half value, int requestedDigits, ref NumberBuffer number)
 
static bool TryRunSingle (float value, int requestedDigits, ref NumberBuffer number)
 

Static Private Member Functions

static bool TryRunCounted (in DiyFp w, int requestedDigits, Span< byte > buffer, out int length, out int decimalExponent)
 
static bool TryRunShortest (in DiyFp boundaryMinus, in DiyFp w, in DiyFp boundaryPlus, Span< byte > buffer, out int length, out int decimalExponent)
 
static uint BiggestPowerTen (uint number, int numberBits, out int exponentPlusOne)
 
static bool TryDigitGenCounted (in DiyFp w, int requestedDigits, Span< byte > buffer, out int length, out int kappa)
 
static bool TryDigitGenShortest (in DiyFp low, in DiyFp w, in DiyFp high, Span< byte > buffer, out int length, out int kappa)
 
static DiyFp GetCachedPowerForBinaryExponentRange (int minExponent, int maxExponent, out int decimalExponent)
 
static bool TryRoundWeedCounted (Span< byte > buffer, int length, ulong rest, ulong tenKappa, ulong unit, ref int kappa)
 
static bool TryRoundWeedShortest (Span< byte > buffer, int length, ulong distanceTooHighW, ulong unsafeInterval, ulong rest, ulong tenKappa, ulong unit)
 

Static Private Attributes

static readonly short[] s_CachedPowersBinaryExponent
 
static readonly short[] s_CachedPowersDecimalExponent
 
static readonly ulong[] s_CachedPowersSignificand
 
static readonly uint[] s_SmallPowersOfTen = new uint[10] { 1u, 10u, 100u, 1000u, 10000u, 100000u, 1000000u, 10000000u, 100000000u, 1000000000u }
 

Detailed Description

Definition at line 795 of file Number.cs.


The documentation for this class was generated from the following file: