Share via


value::as_double Method

Convert the JSON value to a C++ double, if and only if it is a number value. Throws json_exception if the value is not a number

_ASYNCRTIMP double as_double() const;

Return Value

A double representation of the value

Requirements

Header: json.h

Namespace: web::json

See Also

Reference

value Class