Next Question
RSS
On line 987 of Utility2007.pm, change
$output .= $cell->Value if(defined $cell);
to
$output .= $cell->unformatted if(defined $cell);
and then save your changes and reinstall the module if you edited the build copy instead of the installed copy.
I can't guarantee that will work, but from reading the docs, it would seem to....
Permalink | Report
Permalink | Report
Answered Question
M$22
May 02, 2009 05:27 PM
In Perl the xls2csv function from Spreadsheet::XLSX::Utility2007 rounds off to two decimal places, why?
I am writing a Perl/Tk script which displays Excel worksheets using the ss2tk example script from the Spreadsheet::Read module. It does not round off 2 decimal places but the function from Spreadsheet::XLSX::Utility2007 does round off to two decimal places. Why? I'm trying to use that 2nd function as a feature of my program to offer conversion of the displayed worksheets to CSV files.
Interesting Question?
Yes (0)
No (0)
- In Programming |
- |
- Report |
-
Share
RSS
Best Answer Chosen by Asker
| May 03, 2009 02:45 PM |
$output .= $cell->Value if(defined $cell);
to
$output .= $cell->unformatted if(defined $cell);
and then save your changes and reinstall the module if you edited the build copy instead of the installed copy.
I can't guarantee that will work, but from reading the docs, it would seem to....
| Asker's Rating: |
• Thanks for your answer. It didn't work even with module reinstalling with saved changes to the module, but I did get my script to work in a similar way by changing the Spreadsheet::XLSX module on which the Spreadsheet::XLSX::Utility2007 module relies, as follows:
my $cell =Spreadsheet::ParseExcel::Cell->new(
Val => $v,
Format => $thisstyle,
Type => $type
);
to
my $cell =Spreadsheet::ParseExcel::Cell->new(
Val => $v,
Format => $thisstyle,
Type => ""
);
I have a new question which I will post with the same price.
my $cell =Spreadsheet::ParseExcel::Cell->new(
Val => $v,
Format => $thisstyle,
Type => $type
);
to
my $cell =Spreadsheet::ParseExcel::Cell->new(
Val => $v,
Format => $thisstyle,
Type => ""
);
I have a new question which I will post with the same price.
Permalink | Report
Other Answers (1)
May 02, 2009 10:10 PM
It might be uncouth to suggest it, but you should ask this on stackoverflow.com, I bet you'll get an answer there if you don't find one here!
Permalink | Report
Answer this Question
Related Questions
No questions found.
Ask a Question
Buy Mahalo Dollars with Credit Card or PayPal
Top Members
Most Popular Tags
Categories
- Anonymous
- Arts & Design
- Beauty & Style
- Books & Authors
- Business
- Cars & Transportation
- Consumer Electronics
- Coupons Deals
- Education
- Entertainment
- Environment
- Fitness
- Food & Drink
- From Email
- From Iphone
- From Twitter
- Health
- History
- Hobbies
- Home & Garden
- How Tos
- Humor
- Jobs
- Legal
- Local
- Love & Relationships
- Mahalo Answers Community
- Money
- Music
- News
- NSFW
- Parenting
- Pets
- Science & Mathematics
- Services
- Shopping
- Social Science
- Society & Culture
- Sports
- Technology & Internet
- Travel
- Video Games
Welcome New Members
- gingerk, November 11, 2009 02:13 PM
- guyinatlanta, November 11, 2009 02:00 PM
- haleycohenalber..., November 11, 2009 01:57 PM
- nakia30316, November 11, 2009 01:53 PM
- hel793, November 11, 2009 01:52 PM
Mahalo Dollars are the currency of Mahalo Answers.
Each Mahalo Dollar costs $1.
Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More