Skip to content

Should "%" times "m" result in "m" by default? #188

@kendonB

Description

@kendonB
library(units)
#> udunits system database from C:/R/Library/3.5/units/share/udunits
as_units(10, "%") * as_units(10, "m")
#> 100 [%*m]

Created on 2019-01-22 by the reprex package (v0.2.1.9000)

I would have expected to see:

as_units(10, "%") * as_units(10, "m")
#> 1 [m]

Of course, this is a general issue for all continuous units where 0 is meaningful.

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