Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 working with numbers
tempo Offline
Junior Member
**
Posts: 30
Joined: Aug 2012
Post: #7
RE: working with numbers
i'm using 2 custom fields X and Y to calculate and display the Z value like this:

<setvar Z>(float)$threadfields['X']*100/(float)$threadfields['Y'] </setvar>
<td>{$tplvars['Z']}</td>

the problem is that the value of Z is 10.33333 (for example).

Can i rounding this Z value? (to show 10.5 for example)
01-31-2015 11:34 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
working with numbers - tempo - 01-03-2015, 07:03 AM
RE: working with numbers - ZiNgA BuRgA - 01-03-2015, 06:16 PM
RE: working with numbers - tempo - 01-04-2015, 05:49 AM
RE: working with numbers - ZiNgA BuRgA - 01-05-2015, 09:32 AM
RE: working with numbers - tempo - 01-05-2015, 03:54 PM
RE: working with numbers - ZiNgA BuRgA - 01-09-2015, 10:40 PM
RE: working with numbers - tempo - 01-31-2015 11:34 PM
RE: working with numbers - ZiNgA BuRgA - 02-01-2015, 12:18 PM
RE: working with numbers - tempo - 02-01-2015, 03:49 PM
RE: working with numbers - ZiNgA BuRgA - 02-01-2015, 10:41 PM
RE: working with numbers - tempo - 02-02-2015, 02:00 AM
RE: working with numbers - ZiNgA BuRgA - 02-02-2015, 09:14 AM

 Standard Tools
Forum Jump: