Options
All
  • Public
  • Public/Protected
  • All
Menu

Amount of a commodity

Hierarchy

  • Quantity

Index

Properties

Private _amount

_amount: Real

Private _commodityType

_commodityType: CommodityType

Private _unitOfMeasure

_unitOfMeasure: UnitOfMeasure

Static baseUnitOfMeasure

baseUnitOfMeasure: UnitOfMeasure

Static conversionType

conversionType: ConversionType

Methods

add

  • Parameters

    Returns Quantity

amount

  • Returns Real

close

  • Parameters

    Returns boolean

close_enough

  • Parameters

    Returns boolean

commodityType

  • Returns CommodityType

div

  • Parameters

    Returns Real

divScalar

  • Parameters

    Returns Quantity

equal

  • Parameters

    Returns boolean

init1

  • Returns Quantity

init2

lessOrEqual

  • Parameters

    Returns boolean

lessThan

  • Parameters

    Returns boolean

minus

  • Returns Quantity

mulScalar

  • Parameters

    Returns Quantity

plus

  • Returns Quantity

rounded

  • Returns Quantity

sub

  • Parameters

    Returns Quantity

toString

  • toString(): string
  • Returns string

unitOfMeasure

  • Returns UnitOfMeasure