---
title: ParsedQuantity
summary: Interface in @sascom/commonjs.
order: 10
languages: [javascript]
sdk-package: JavaScript · @sascom/commonjs
---

# ParsedQuantity

[[page:reference/javascript/api|API catalogue]] · `@sascom/commonjs` · Interface

````typescript sdk=js sdk-namespace="@sascom/commonjs"
interface ParsedQuantity
````

A quantity that parsed

## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/sascom-commonjs/parsedquantity-864b36a9#member-assumedunit-f1f1be2e2942|assumedUnit]] | Property | The unit taken for a bare number; null when a unit was typed |
| [[page:reference/javascript/sascom-commonjs/parsedquantity-864b36a9#member-exact-ef1e4c4590ce|exact]] | Property | Whether the value has at most 3 decimals in the typed unit (inches for "ft-in") |
| [[page:reference/javascript/sascom-commonjs/parsedquantity-864b36a9#member-kind-ab607afd1ad1|kind]] | Property |  |
| [[page:reference/javascript/sascom-commonjs/parsedquantity-864b36a9#member-ok-827887b8830b|ok]] | Property |  |
| [[page:reference/javascript/sascom-commonjs/parsedquantity-864b36a9#member-typedunit-e339c54cd9b5|typedUnit]] | Property | The unit typed: a symbol, "ft-in" for feet with inches, "mixed" for other combinations, null for a bare number |
| [[page:reference/javascript/sascom-commonjs/parsedquantity-864b36a9#member-unit-e3badf43afe9|unit]] | Property | The canonical unit's symbol |
| [[page:reference/javascript/sascom-commonjs/parsedquantity-864b36a9#member-value-e8fe309e3eca|value]] | Property | In the canonical unit of the kind: mm, degrees, mm², mm³ |

## `assumedUnit` {#member-assumedunit-f1f1be2e2942}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
assumedUnit: string | null
````

The unit taken for a bare number; null when a unit was typed

## `exact` {#member-exact-ef1e4c4590ce}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
exact: boolean
````

Whether the value has at most 3 decimals in the typed unit (inches for "ft-in")

## `kind` {#member-kind-ab607afd1ad1}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
kind: QuantityKind
````



## `ok` {#member-ok-827887b8830b}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
ok: true
````



## `typedUnit` {#member-typedunit-e339c54cd9b5}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
typedUnit: string | null
````

The unit typed: a symbol, "ft-in" for feet with inches, "mixed" for other combinations, null for a bare number

## `unit` {#member-unit-e3badf43afe9}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
unit: string
````

The canonical unit's symbol

## `value` {#member-value-e8fe309e3eca}

````typescript sdk=js sdk-namespace="@sascom/commonjs"
value: number
````

In the canonical unit of the kind: mm, degrees, mm², mm³
