[PHP] Problem with wanting something NOT to round

2006-11-17 Thread George Pitcher
Hi, As part of a result from a web-service call, I get a price in dollars and cents as a decimal number eg.160.44 (the example I am working on. This price is for permission to re-use some published material and for each additional separate pagerange, $3 needs to be added afterwards. So I have

Re: [PHP] Problem with wanting something NOT to round

2006-11-17 Thread Stut
George Pitcher wrote: As part of a result from a web-service call, I get a price in dollars and cents as a decimal number eg.160.44 (the example I am working on. This price is for permission to re-use some published material and for each additional separate pagerange, $3 needs to be added

Re: [PHP] Problem with wanting something NOT to round

2006-11-17 Thread Stut
George Pitcher wrote: Are you sure the web service is giving you 160.44? I get it displayed as expected... http://dev.stut.net/php/pitcher.php Yes, I am echoing the 160.44 ok. I'm just not getting the 44c in my display price. I'm on Windows NT - could that be a factor? I'm not sure

RE: [PHP] Problem with wanting something NOT to round

2006-11-17 Thread George Pitcher
George Pitcher wrote: As part of a result from a web-service call, I get a price in dollars and cents as a decimal number eg.160.44 (the example I am working on. This price is for permission to re-use some published material and for each additional separate pagerange, $3 needs to be

RE: [PHP] Problem with wanting something NOT to round

2006-11-17 Thread George Pitcher
George Pitcher wrote: Are you sure the web service is giving you 160.44? I get it displayed as expected... http://dev.stut.net/php/pitcher.php Yes, I am echoing the 160.44 ok. I'm just not getting the 44c in my display price. I'm on Windows NT - could that be a factor? I'm

Re: [PHP] Problem with wanting something NOT to round

2006-11-17 Thread Stut
George Pitcher wrote: I am using PHP5.1 with Smarty templates on my page (but not on the standalone page). Smarty doesn't offer anything other than the sprintf() options for string formatting of decimal numbers, and I'm already doing that. Do you think Smarty could be so unsmart as to undo the