absl::HighPrecision

HighPrecision overloads

Synopses

Declared in <absl/strings/str_cat.h>

Converts a double to a string which, if passed to absl::SimpleAtod, would produce the exact same original floating point value (except in case of NaN; all NaNs are considered the same value).

/* implementation-defined */
HighPrecision(double d);
» more...

Converts a float to a string which, if passed to absl::SimpleAtof, would produce the exact same original floating point value (except in case of NaN; all NaNs are considered the same value).

/* implementation-defined */
HighPrecision(float f);
» more...

Return Value

A buffer holding the round-trippable string representation.

Parameters

NameDescription
dThe floating point value to convert.
fThe floating point value to convert.