Skip to main content
Skip table of contents

PriceModel

Model for a price with amount and currency.

implements: hash, scalar
bundle: standard information structure (sismodel)
since 5.2.0
Model for a price with amount and currency.

Model for a price as amount and currency as defined in Price.

[used as scalar] ↦ String
since 5.2.0
get the formated price

Defined hash keys

currency ↦ String
since 5.7.1
get currency

price ↦ double
since 5.2.0
get the price

symbol ↦ String
since 5.2.0
get currency symbol

Methods

minus(PriceModel:other)PriceModel
since 5.2.0
subtract the given price from this price

multiply(Number:multiplier)PriceModel
since 5.2.0
multiply this price with given number

plus(PriceModel:other)PriceModel
since 5.2.0
add the given price to this price

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.