Skip to content

minimal-printf doesn't display decimals between -1 to 0 correctly #13783

@Linguanghsou

Description

@Linguanghsou

Description of defect

The output of:

    double d = -0.00139;
    printf("d = %f\r\n",d);

with minimal-printf is:
d = 0.001391
but it should be:
d = -0.001391

with setting "target.printf_lib": "std" the output is as expected.

Target(s) affected by this defect ?

NUCLEO_F413ZH

Toolchain(s) (name and version) displaying this defect ?

gcc-arm-none-eabi-9-2019-q4-major

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.3.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli

How is this defect reproduced ?

double d = -0.00139;
printf("d = %f\r\n",d);

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