Skip to content

to_string strange output #307

Closed
Closed
@StrikeByte

Description

to_string does not output the expected unit when using mm/s or mm/s^2 as a unit
see the example below

auto speedUnit = unit_from_string("mm/s"); cout << "speed unit" << to_string(speedUnit); //outputs mHz*m auto accUnit = unit_from_string("mm/s^2"); cout << "acceleration unit" << to_string(accUnit); //outputs 1/um

the webconverter does the same when pressing to_string, pressing convert will produce the right string representation

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