number_precision

Enumeration of number parsing modes.

Synopsis

Defined in header <boost/json/parse_options.hpp>.

enum class number_precision
    : unsigned char;

Values

Name Description

imprecise

Fast, but potentially less precise mode.

precise

Slower, but precise mode.

none

The fastest mode, that only validates encountered numbers without parsing them.

Description

These values are used to select the way to parse numbers.

See Also

Convenience header <boost/json.hpp>.