Skip to content

String() class fails to construct properly with floats and doubles #109

@mwmckee

Description

@mwmckee

Hitting an issue where using Arduino's String class constructor fails to create a string when given an initial value that is a float or a double.

Simple repro: Serial.print(String(1.1)) doesn't print anything.

A repro program is attached. This program works when targeting an Uno. This is with the following two packages installed:
◾Arduino SAMD Boards (32-bits ARM Cortex-M0+), version 1.6.2
◾Arduino SAMD Core - (build 1), version 1.6.2-build-2

string_bug_repro.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions