Skip to content

How to get the raw unit ? #231

@gihanpanapitiya

Description

@gihanpanapitiya

How do I get the raw unit? I'd like to get the M/L. Instead, with quants[0].unit.name I get metre per litre.

from quantulum3 import parser
quants = parser.parse('solubility is 2 M/L')

Also, is there a way to find the span of value and unit quantities seperately?

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