E
E
eldar_web2020-01-31 12:39:38
Ruby on Rails
eldar_web, 2020-01-31 12:39:38

Spreadsheet for parsing xls trims leading zeros. How to solve the problem?

The Spreadsheet gem is used to parse xls files.
And when parsing, if the cell contains a set of numbers with a zero at the beginning,
for example "0753", then the gem pulls out the value as "753".
How to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vayladion Gognazdiak, 2020-02-03
@etspring

' to help
put in the column before 0000001
' 0000001 will be read normally

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question