to_float overloads

Synopses

Declared in <llvm/ADT/StringExtras.h>

Parse T as a double into Num.

bool
to_float(
    Twine const& T,
    double& Num);

Parse T as a float into Num.

bool
to_float(
    Twine const& T,
    float& Num);

Parse T as a long double into Num.

bool
to_float(
    Twine const& T,
    long double& Num);

Return Value

True if the conversion succeeded.

Parameters

Name

Description

T

text to parse

Num

set to the parsed value on success

Created with MrDocs