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
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
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
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
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
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
6 matches
Mail list logo