tenants
Well-known member
I'm sure I've done this before (but searching though my tempates I can't find the example now)
I return a float to the template, for instance:
<span>{$someArray.myFloat}</span>
In the database, myFloat is 4 decimal places, eg: 0.0595
However, it is displayed as: 0.059500001370907
In the template, I'm sure there is a way of only displaying the first x characters.. how is this done?
<clawing through all my mods to try to find how I did it before>
I return a float to the template, for instance:
<span>{$someArray.myFloat}</span>
In the database, myFloat is 4 decimal places, eg: 0.0595
However, it is displayed as: 0.059500001370907
In the template, I'm sure there is a way of only displaying the first x characters.. how is this done?
<clawing through all my mods to try to find how I did it before>