На нашем веб-сайте используются файлы cookie для персонализации контента, содержания содержимого в корзине покупок и в рамках проверки.
Ваша личная информация будет сохранена и передана в виде зашифрованных данных.
У вас есть возможность обновлять и удалять вашу личную информацию.
You consent to our cookies if you continue to use this website.
Разрешить куки для
Necessary Cookies Необходимые файлы cookie не могут быть отключены, потому что они необходимы для правильного функционирования нашего веб-сайта. Они хранят ваш язык, валюту, корзину покупок и учетные данные для входа.
Файлы cookie для Google Analytics Мы используем google.com analytics и bing.com для мониторинга использования сайта и статистики страниц, чтобы помочь нам улучшить наш сайт. Вы можете включить или выключить это с помощью меток, указанных выше.
Маркетинговые куки Маркетинг Cookies отслеживает личные данные. Google и Bing отслеживают ваши просмотры страниц и покупки для использования в рекламе и ремаркетинге на других сайтах. Вы можете включить или выключить это с помощью меток, указанных выше.
Социальные куки Эти сторонние Cookies отслеживают личные данные. Это позволяет интегрировать Facebook, Twitter и Pinterest. например. показывает кнопку Facebook «LIKE». Тем не менее, они смогут просмотреть, что вы делаете на нашем веб-сайте. Вы можете включить или выключить это с помощью меток, указанных выше.
I was trying to read numeric value from an excel file.I used the function "cell.getNumericCellValue()" to read the column. Some times the value is fetched correctly and some times it returns a high precision value( ie, some times the value 118.474 is fetched as 118.4739999999), while I require the exact value. The format type of the column in the excel is "custom".
Can any one please help me on this?
Sreeram
pkBRONZE Member Lambretta Fanatic 4,998 posts Location: United Kingdom
Posted: 118.4739999999 ...considering excel uses better calculations than myself I'd say that figure was most likely to be correct when 118.474 may look logically correct.
I'm no mathematician nor excel user.
Good luck.
Deamon_LlamaBRONZE Member member 78 posts Location: Melbourne, Australia
Posted: I can show mathematically that 118.4739999999 is actually equal to 118.474, but I don't think that will be particularly useful, sorry
--- No statements are true unless they can be proven scientifically. ---
YakumoSILVER Member veteran 1,237 posts Location: Oxfordshire, United Kingdom
Posted: are you always reading cell.getNumericCellValue into a variable with a datatype that can hold the full value? and are all the fields your reading from definitely formatted correctly?
same problem is discussed here though you havn't actually said what language you're programming/scripting in...
Blinded by Hyperlights, please donate generously
Mr ChutneySILVER Member Tosser 1,712 posts Location: Bristol,UK
Posted: Nor indeed why you are posting this on a poi forum?!
Similar Topics
Using the keywords [read numeric value excel] we found the following existing topics.