CloudCastle CurrencyConverter

DecimalRate
in package

FinalYes

Разбор десятичной записи курса («1.0850», «2», «.5») в дробь.

Table of Contents

Properties

$math  : IntegerMath

Methods

__construct()  : mixed
parse()  : ExchangeRate
digits()  : int
parts()  : array{whole: string, fraction: string}

Properties

Methods

parts()

private parts(string $trimmed) : array{whole: string, fraction: string}
Parameters
$trimmed : string
Tags
throws
InvalidRateException
Return values
array{whole: string, fraction: string}
On this page

Search results