Skip to content

JReadFloat

Description

Read a floating-point number from input string.

Parameters

Name Direction Description
si in Current reading position in input string
val out Pointer to f64 to store parsed value

Success

Returns StrIter advanced past parsed float

Failure

Returns original StrIter on error

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    StrIter JReadFloat(StrIter si, f64 *val) {
        if (!StrIterRemainingLength(&si)) {
            return si;
        do {                                                                                                               \
            f64 UNPL(my_flt) = 0;                                                                                          \
            si               = JReadFloat((si), &UNPL(my_flt));                                                            \
            (f)              = UNPL(my_flt);                                                                               \
        } while (0)
            if (!StrCmp(&key, (k))) {                                                                                      \
                f64 UNPL(my_flt) = 0;                                                                                      \
                si               = JReadFloat((si), &UNPL(my_flt));                                                        \
                (f)              = UNPL(my_flt);                                                                           \
            }                                                                                                              \
Last updated on