Skip to content

JW_FLT

JW_FLT

Description

Append a floating-point value to a JSON string.

Parameters

Name Direction Description
j in,out The target string to append to.
f in Floating-point value.

Usage example (from documentation)

  JW_FLT(json, 3.14);

Success

Appends a float value to json

Failure

Does not return on failure

Usage example (Cross-references)

Usage examples (Cross-references)
            }                                                                                                              \
            StrAppendf(&(j), "\"%s\":", k);                                                                                \
            JW_FLT(j, f);                                                                                                  \
        } while (0)
Last updated on