how to convert simplexml oblect to float

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Does anyone know a way to convert a simplexml object to a float variable?

I have an onbect: $fee, which is a decimal price. I need to add something to
this price, but I loose the decimal part if I do. I've tried using
settype($fee, "float") but that doesn't work.

All the simplexml examples in the manual concern strings, not numbers.

Any suggestions?

MTIA

George in Oxford

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux