Skip to content

Samsara\Fermat\Core\Provider > NumberFormatProvider

No description available

Methods

Static Methods

public NumberFormatProvider::addDelimiter(string $number, NumberFormat $format, NumberGrouping $grouping)

addDelimiter

$number

type
string
description
No description available

$format

type
NumberFormat
description
No description available

$grouping

type
NumberGrouping
description

return

type
string
description
No description available

public NumberFormatProvider::formatCurrency(string $number, Currency $currency, NumberFormat|null $format, NumberGrouping|null $grouping)

formatCurrency

$number

type
string
description
No description available

$currency

type
Currency
description
No description available

$format

type
NumberFormat|null
description
No description available

$grouping

type
NumberGrouping|null
description

return

type
string
description
No description available

public NumberFormatProvider::formatNumber(string $number, NumberFormat|null $format, NumberGrouping|null $grouping)

formatNumber

$number

type
string
description
No description available

$format

type
NumberFormat|null
description
No description available

$grouping

type
NumberGrouping|null
description

return

type
string
description
No description available

public NumberFormatProvider::formatScientific(string $number)

formatScientific

$number

type
string
description

return

type
string
description
No description available

public NumberFormatProvider::getDelimiterCharacter(NumberFormat $format)

getDelimiterCharacter

$format

type
NumberFormat
description

return

type
string
description
No description available

public NumberFormatProvider::getNegativeCharacter(NumberFormat $format)

getNegativeCharacter

$format

type
NumberFormat
description

return

type
string
description
No description available

public NumberFormatProvider::getPositiveCharacter(NumberFormat $format)

getPositiveCharacter

$format

type
NumberFormat
description

return

type
string
description
No description available

public NumberFormatProvider::getRadixCharacter(NumberFormat $format)

getRadixCharacter

$format

type
NumberFormat
description

return

type
string
description
No description available