Re: CSV output.

From: Date: Mon, 08 Sep 2008 22:16:22 +0000
Subject: Re: CSV output.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-279702@lists.php.net to get a copy of this message
Tom Shaw wrote: > I'm outputting a bunch of numerical values for a spreadsheet to calculate > total sales among other things on a client shopping cart. I'm running into > problems with values that contain zeros after the decimal. If a value is > 234.55 the value outputs fine to the CSV file but if the value is 234.00 > only 234 shows up. Is there any way to force the zeros into the spreadsheet? If your code is written correctly, the .00 will be in the CSV file However the program you are using to view the CSV file probably auto-hides them without you knowing it. POST YOUR Code POST your CSV output Without Code and without Output, you don't really show the problem. Wolf

« previous php.general (#279702) next »