[development] Converting floats stored in scientific notation back to decimals

Earnie Boyd earnie at users.sourceforge.net
Mon Nov 5 12:24:19 UTC 2007


Quoting Karen Stevenson <karen at elderweb.com>:

> I'm working on the CCK D6 port and I need help coming up with the SQL 
> to convert floats stored in scientific notation back to decimals.
>

Read the data from the DB then <?php $data = (float)(0+$data); ?> 
should convert the string back to floating.

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/



More information about the development mailing list