|
JSON for Modern C++
3.0
|
|
inline |
Create a floating-point number JSON value with a given content.
| [in] | value | a floating-point value to create a JSON number from |
In case the parameter value is not a number, a JSON null value is created instead.Numeric values that cannot be represented in the grammar below (such as Infinity and NaN) are not permitted.
3.14159265358979 null nullThe example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/basic_json__number_float_t.cpp -o basic_json__number_float_t.