Same as prettyToDouble(folly::StringPiece*, PrettyType), but expects whole string to be correctly parseable. Throws std::range_error otherwise

Synopsis

Declared in <folly/String.h>

double
prettyToDouble(
    folly::StringPiece prettyString,
    PrettyType const type);

Return Value

The parsed numeric value.

Parameters

Name

Description

prettyString

The pretty‐formatted string to parse.

type

The unit family to interpret.

Created with MrDocs