We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClarifyingSymbol
CurrencyDisplay
This means that currencies with, for example, $ symbol will identify their true nature.
$
For example, both Canadian and American dollars have the same symbol $, and in order to understand which is which, ClarifyingSymbol comes into place.
$cad = currency('CAD')->setDisplay(CurrencyDisplay::ClarifyingSymbol); $cadMoney = money('2500', $cad); $usd = currency('USD')->setDisplay(CurrencyDisplay::ClarifyingSymbol); $usdMoney = money('2500', $usd); $cadMoney->toString(); // "CA$ 0.25" $usdMoney->toString(); // "US$ 0.25"
⚠️ This will work only for currencies with the same symbols.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This means that currencies with, for example,
$
symbol will identify their true nature.For example, both Canadian and American dollars have the same symbol
$
, and in order to understand which is which,ClarifyingSymbol
comes into place.The text was updated successfully, but these errors were encountered: