[#absl-HighPrecision-0baa]
= xref:absl.adoc[absl]::HighPrecision
:relfileprefix: ../
:mrdocs:

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

== Synopsis

Declared in `&lt;absl&sol;strings&sol;str&lowbar;cat&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&sol;&ast; implementation-defined &ast;&sol;
HighPrecision(float f);
----

== Description

Tries to keep the string short but it&apos;s not guaranteed to be as short as possible&period; `HighPrecision` is considerably slower than the default formatting, so only use it if you need the string to convert back to the same floating&hyphen;point value&period;

== Return Value

A buffer holding the round&hyphen;trippable string representation&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *f*
| The floating point value to convert&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
