CloudCastle CurrencyConverter

ExchangeRate
in package

FinalYes

Курс как несократимая дробь числитель/знаменатель. Float не используется.

Table of Contents

Properties

$base  : Currency
$denominator  : int
$math  : IntegerMath
$numerator  : int
$quote  : Currency

Methods

__construct()  : mixed
base()  : Currency
cross()  : self
Последовательное применение двух курсов: base→pivot и pivot→quote.
denominator()  : int
inverse()  : self
numerator()  : int
pair()  : CurrencyPair
quote()  : Currency
withMarkup()  : self
Наценка в базисных пунктах (100 = 1 процент) к величине курса.

Properties

Methods

cross()

Последовательное применение двух курсов: base→pivot и pivot→quote.

public cross(self $next) : self
Parameters
$next : self
Tags
throws
InvalidRateException
Return values
self

denominator()

public denominator() : int
Return values
int

withMarkup()

Наценка в базисных пунктах (100 = 1 процент) к величине курса.

public withMarkup(int $basisPoints, RoundingMode $mode) : self
Parameters
$basisPoints : int
$mode : RoundingMode
Tags
throws
InvalidRateException
Return values
self
On this page

Search results