mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
use more convoluted formatting method
This commit is contained in:
parent
2a70035a19
commit
7b181559ab
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ elixir:
|
|||
|
||||
p
|
||||
strong> Price Range:
|
||||
= :io_lib.format("$~.2f - $~.2f USD", [min.base_price || 0.0, max.base_price || 0.0])
|
||||
| $
|
||||
=> Decimal.round(min.base_price, 2) |> Decimal.to_string()
|
||||
| - $
|
||||
=> Decimal.round(max.base_price, 2) |> Decimal.to_string()
|
||||
' USD
|
||||
|
||||
p
|
||||
strong> Categories:
|
||||
|
|
Loading…
Reference in a new issue