General discussion
December 23, 2007 at 05:25 AM
eswar.vaidyanathan

Excel formatting in php

by eswar.vaidyanathan . Updated 18 years, 11 months ago

I am able to format a excel column to 2 decimal places using php
with the help of number_format function.
I am also see the formatted values in browser.
But when i download that as a excel file,decimal values
are getting rounded off automatically eg: 8.10 is shown as 8.1 .
I need to show only 8.10 in excel without rounding off.
Can anybody suggest on this?

This discussion is locked

All Comments