Specifies how to format floating‐point values in serialized JSON output.
Synopsis
Declared in <folly/json/json.h>
enum class FloatFormat : int;
Description
Each enum value maps to a fixed fmt format string at the printer dispatch site, so there is no runtime fmt‐spec parsing on the serialization hot path.
Members
Name |
Description |
|
Shortest decimal that round‐trips back to the exact same IEEE‐754 double (equivalent to |
|
Like SHORTEST, but always emits a decimal point and at least one fractional digit (e.g. |
|
Like SHORTEST, but uses single‐precision rounding: the shortest decimal that round‐trips to the same IEEE‐754 float (equivalent to |
|
Like SHORTEST_SINGLE, but always emits a decimal point and at least one fractional digit (e.g. |
|
Fixed‐point notation with |
|
General‐precision notation ( |
Created with MrDocs