Skip to content

Improvements for Stream.cpp in methods "parseInt" and "parseFloat" #88

@fcebron

Description

@fcebron

I have noticed that the 2 methods "parseInt" and "parseFloat" in the Stream.cpp file which returns "0" when they reach a timeout. My problem with this is that I wanted to parse a String and find numbers (including zeros!) and to easily get read of characters which are not numbers.

To solve this, I suggest that these methods returns "(int)NAN" or "(float)NAN" in case that they reaches a timeout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions