I am printing out a double from a sql database. When it prints out it prints in scientific notation, but i want it to print out 0.00005 instead of 5E-5.


Thanks

Could you please provide the related code and if your server has 32-bit Operating system or 64-bit. The example should be along the lines of the following.

<?php
mysql_connect('localhost','root','');
mysql_select_db('my_database');
$r=mysql_query('SELECT * FROM `table`');
$data=mysql_fetch_assoc($r);
echo $data['number'];
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.