Question
December 23, 2007 at 05:24 AM
eswar.vaidyanathan

Fomatting excel before downloading using 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.1 in excel without ruounding off.
Can anybody suggest on this?

This discussion is locked

All Comments