I got the following code
# On va convertir en somme monétaire
# We convert our integer into a way to read money
$Vars['Income'] = money_format('%.2n', $Income);
$Vars['Spending'] = money_format('%.2n', $Spending);
# On va calculer ce qui reste à dépenser
# We do the math to know how much we can spend until the end of the month
$Vars['Remaining'] = money_format('%.2n', $Income - $Spending);
If $Income - $Spending
is negative (under 0), then the income is lower then the spending. Alright. I am using my locale, french (canada) and the result for a negative number is (X,XX $).
Not having a - sign make non sense for me so I want to be able to output the number with a -0.00$ and not with (0.00$).
Example my income is 75.00$ and my spending are 100.00$. I spent 25$ more then I do so the remaining money will output (25.00$) but I want -25.00$.
I did try to add ( or + but I don't understand.
Thanks
UPDATE: Picture