price formatting: fix bug
price formatting: fix bug: a task in smol-software-harbor (Harbor dataset). format price() in src/price.php formats negative amounts wrongly (a refund of -1500.75 comes out as $-1,500.75 , and amounts between -1 and 0 lose their sign). The sign must come first, before the currency prefix…
The task
`format_price()` in `src/price.php` formats negative amounts wrongly (a refund of -1500.75 comes out as `$-1,500.75`, and amounts between -1 and 0 lose their sign). The sign must come first, before the currency prefix: `-$1,500.75`, `-€ 0,50`. Fix it and run `php tests/run.php`.
Part of efederici/smol-software-harbor.