Skip to content
  • Gábor Szalai's avatar
    Remove leading zero warning from str2float compiler part (bug 566028) · bcab9cf8
    Gábor Szalai authored
    The standard explicitly allow the leading zero for str2float
    Leading zero warning is not needed as it is allowed.
    C.1.29  Character string to float
    str2float(in charstring invalue) return float This function
    converts a charstring comprising a number into a float value.
    The format of the number in the charstring shall follow rules
    in clause 6.1.0, items a) or b) with the following exceptions:
    leading zeros are allowed;
    str2float("12345.6") // is the same as str2float("123.456E+02")
    Change-Id: I0e29260f893874d4b34372cd064882bb51087260
    Signed-off-by: default avatarGabor Szalai <>