in reply to Spreadsheet::WriteExcel cell formatting.
If you want to display numbers, why are you using the write_string() method instead of the write_number(),method?
Your method call is missing the format specification (the 4th parameter). You should be passing the format instead of hard coding it as a string, like you're currently doing.
The 3rd example Spreadsheet::WriteExcel#Example_3 in the module documentation shows how to specify a currency format.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Spreadsheet::WriteExcel cell formatting.
by anonymonk (Acolyte) on Sep 22, 2015 at 19:41 UTC | |
by fishmonger (Chaplain) on Sep 22, 2015 at 19:50 UTC | |
by SimonPratt (Friar) on Sep 23, 2015 at 16:04 UTC | |
by anonymonk (Acolyte) on Sep 23, 2015 at 18:34 UTC | |
by soonix (Chancellor) on Sep 24, 2015 at 08:11 UTC |