Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Money

amount of cash

test

money arithmetic is tested with and without currency conversions.

Hierarchy

  • Money

Index

Properties

Private _currency

_currency: Currency

Private _isDisposed

_isDisposed: boolean = false

Private _value

_value: Decimal

Static baseCurrency

baseCurrency: Currency

Static conversionType

conversionType: ConversionType

Accessors

isDisposed

  • get isDisposed(): boolean
  • Returns boolean

Methods

adda

  • operator

    +=

    Parameters

    Returns Money

clone

  • Returns Money

currency

  • Returns Currency

dispose

  • dispose(): void
  • Returns void

diva

  • operator

    /=

    Parameters

    Returns Money

init1

  • Returns Money

init2

init3

minus

  • operator

    Returns Money

mula

  • operator

    *=

    Parameters

    Returns Money

rounded

  • Returns Money

suba

  • operator

    -=

    Parameters

    Returns Money

toString

  • toString(): string
  • Returns string

value

  • Returns Decimal

Static add

  • operator

    +

    Parameters

    Returns Money

Static close

  • Parameters

    Returns boolean

Static close_enough

  • Parameters

    Returns boolean

Static div

  • operator

    /

    Parameters

    Returns Decimal

Static divx

Static equal

  • operator

    ==

    Parameters

    Returns boolean

Static greaterEqual

  • operator

    =

    Parameters

    Returns boolean

Static greaterThan

  • operator

    Parameters

    Returns boolean

Static lessEqual

  • operator

    <=

    Parameters

    Returns boolean

Static lessThan

  • operator

    <

    Parameters

    Returns boolean

Static mul

Static notEqual

  • operator

    !=

    Parameters

    Returns boolean

Static sub

  • operator

    -

    Parameters

    Returns Money