Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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