MoneyHelper ​
- Type
- Class
- Namespace
- craft\helpers
- Inherits
- craft\helpers\MoneyHelper
- Since
- 4.0.0
Class MoneyHelper
Public Methods ​
| Method | Description |
|---|---|
| toDecimal() | Convert money object to standard decimal string. |
| toMoney() | |
| toNumber() | Convert money object to localized decimal string. |
| toString() | Convert money object to localized currency string. |
toDecimal() ​
Convert money object to standard decimal string.
Arguments ​
$value(mixed)
Returns ​
toMoney() ​
Arguments ​
$value(mixed)
Returns ​
\Money\Money, false
toNumber() ​
Convert money object to localized decimal string.
Arguments ​
Returns ​
toString() ​
Convert money object to localized currency string.