Skip to content

automatically convert to equivalent units #352

@soweli-Luna

Description

@soweli-Luna

in a previous issue, i proposed that c be a unit rather than a constant

but i've also realized this could pose a problem for usability though, as it would complicate some simpler cases somewhat, such as when a user types just c alone, the current behavior is to return the equivalent speed in m/s, which is convenient, but after a change like this a user would need to ask specifically for c in m/s
so, it might also be worth considering some edge case to automatically convert units to equivalent notations, if the input is sufficiently simple (so that c and maybe 10au convert automatically to m / s, but if something more complex is done, the original unit should be preserved)

most of the complexity of this feature would obviously be in designing the bounds which decide if a unit conversion should automatically occur or if the given unit should be preserved, but there would also presumably be the labor involved in potentially manually setting up some sensible unit equivalencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions