Reputation: 1038
Based on the documentation of string_format
This:
{$testy = 16.99}{$testy|string_format:'%d'}
Should output 17
but it gives me 16
instead
Anyone knows how to fix it?
Upvotes: 1
Views: 234
Reputation: 1013
I think there is an error in the new documentation. If you look at the old version it is correct.
In cases you need 17
I recommend this:
{$testy|ceil|string_format:"%d"}
Upvotes: 1