Return a string for a special floating‐point classification, or 0.
Synopsis
Declared in <baljsn_printutil.h>
static
char const*
floatingPointSpecialAsString(bdlb::Float::FineClassification classification);
Description
Return the string representation of special floating point values if the specified classification is: * bdlb::Float::k_POSITIVE_INFINITY * bdlb::Float::k_NEGATIVE_INFINITY * bdlb::Float::k_QNAN * bdlb::Float::k_SNAN and 0 otherwise. This representation does not include the delimiting double quotes of JSON strings.
Return Value
string representation of the special value, or 0 if not special
Parameters
Name |
Description |
classification |
floating‐point classification to map to a string |
Created with MrDocs