WPILibC++ 2027.0.0-alpha-5
Loading...
Searching...
No Matches
wpi::double_conversion Namespace Reference

Namespaces

namespace  PowersOfTenCache

Classes

class  DiyFp
class  StringToDoubleConverter
class  Double
class  Single
class  DoubleToStringConverter
class  Vector
class  StringBuilder
class  Bignum

Enumerations

enum  BignumDtoaMode { BIGNUM_DTOA_SHORTEST , BIGNUM_DTOA_SHORTEST_SINGLE , BIGNUM_DTOA_FIXED , BIGNUM_DTOA_PRECISION }
enum  FastDtoaMode { FAST_DTOA_SHORTEST , FAST_DTOA_SHORTEST_SINGLE , FAST_DTOA_PRECISION }

Functions

bool FastFixedDtoa (double v, int fractional_count, Vector< char > buffer, int *length, int *decimal_point)
static uint64_t double_to_uint64 (double d)
static double uint64_to_double (uint64_t d64)
static uint32_t float_to_uint32 (float f)
static float uint32_to_float (uint32_t d32)
void BignumDtoa (double v, BignumDtoaMode mode, int requested_digits, Vector< char > buffer, int *length, int *point)
bool FastDtoa (double d, FastDtoaMode mode, int requested_digits, Vector< char > buffer, int *length, int *decimal_point)
int StrLength (const char *string)
template<class Dest, class Source>
Dest BitCast (const Source &source)
template<class Dest, class Source>
Dest BitCast (Source *source)
double Strtod (Vector< const char > buffer, int exponent)
float Strtof (Vector< const char > buffer, int exponent)
double StrtodTrimmed (Vector< const char > trimmed, int exponent)
float StrtofTrimmed (Vector< const char > trimmed, int exponent)
Vector< const char > TrimTrailingZeros (Vector< const char > buffer)

Variables

static const int kFastDtoaMaximalLength = 17
static const int kFastDtoaMaximalSingleLength = 9

Enumeration Type Documentation

◆ BignumDtoaMode

Enumerator
BIGNUM_DTOA_SHORTEST 
BIGNUM_DTOA_SHORTEST_SINGLE 
BIGNUM_DTOA_FIXED 
BIGNUM_DTOA_PRECISION 

◆ FastDtoaMode

Enumerator
FAST_DTOA_SHORTEST 
FAST_DTOA_SHORTEST_SINGLE 
FAST_DTOA_PRECISION 

Function Documentation

◆ BignumDtoa()

void wpi::double_conversion::BignumDtoa ( double v,
BignumDtoaMode mode,
int requested_digits,
Vector< char > buffer,
int * length,
int * point )

◆ BitCast() [1/2]

template<class Dest, class Source>
Dest wpi::double_conversion::BitCast ( const Source & source)

◆ BitCast() [2/2]

template<class Dest, class Source>
Dest wpi::double_conversion::BitCast ( Source * source)

◆ double_to_uint64()

uint64_t wpi::double_conversion::double_to_uint64 ( double d)
static

◆ FastDtoa()

bool wpi::double_conversion::FastDtoa ( double d,
FastDtoaMode mode,
int requested_digits,
Vector< char > buffer,
int * length,
int * decimal_point )

◆ FastFixedDtoa()

bool wpi::double_conversion::FastFixedDtoa ( double v,
int fractional_count,
Vector< char > buffer,
int * length,
int * decimal_point )

◆ float_to_uint32()

uint32_t wpi::double_conversion::float_to_uint32 ( float f)
static

◆ StrLength()

int wpi::double_conversion::StrLength ( const char * string)
inline

◆ Strtod()

double wpi::double_conversion::Strtod ( Vector< const char > buffer,
int exponent )

◆ StrtodTrimmed()

double wpi::double_conversion::StrtodTrimmed ( Vector< const char > trimmed,
int exponent )

◆ Strtof()

float wpi::double_conversion::Strtof ( Vector< const char > buffer,
int exponent )

◆ StrtofTrimmed()

float wpi::double_conversion::StrtofTrimmed ( Vector< const char > trimmed,
int exponent )

◆ TrimTrailingZeros()

Vector< const char > wpi::double_conversion::TrimTrailingZeros ( Vector< const char > buffer)
inline

◆ uint32_to_float()

float wpi::double_conversion::uint32_to_float ( uint32_t d32)
static

◆ uint64_to_double()

double wpi::double_conversion::uint64_to_double ( uint64_t d64)
static

Variable Documentation

◆ kFastDtoaMaximalLength

const int wpi::double_conversion::kFastDtoaMaximalLength = 17
static

◆ kFastDtoaMaximalSingleLength

const int wpi::double_conversion::kFastDtoaMaximalSingleLength = 9
static