Home of POI and fire twirling The Crew - uploaded by cthopkinsFire Wings - uploaded by cthopkinsPlaying w/ Poi - uploaded by cthopkins
Google
  Web homeofpoi.com
      

Read Numeric value From Excel

      

Community News.
Attention: "Circles of Light" - COL 2008 Video entries close 30th June 2008!.
Social >> Help!

Pages: 1
Sreeram
newbie
Member #61533
Reged: 23/10/07

Read Numeric value From Excel Find similar topicfind similar  
     23/10/07 08:16 PM

Hi,

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


Post Extras: Print Post   Remind Me!     Send Private Message   Notify ModeratorNotify moderator!
PK_
50 deluxe

Member #1107
Reged: 20/12/01
Loc: Lost In Pele.
  new 29/10/07 09:45 PM

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.

--------------------
PK.

"To be an angel, one need not have wings.
In giving love there is an equal grace.
Nor need one seek the aura in the face,
As love unveils the beauty of all things."

*Francois Couperin.


Post Extras: Print Post   Remind Me!     Send Private Message   Notify ModeratorNotify moderator!
Deamon_Llama
member

Member #61087
Reged: 14/10/07
Loc: Melbourne
  new 29/10/07 10:22 PM

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.
---


Post Extras: Print Post   Remind Me!     Send Private Message   Notify ModeratorNotify moderator!
Yakumo
Hyperlight zealot

Member #35166
Reged: 31/05/06
Loc: Oxfordshire
  new 13/01/08 06:06 PM

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


Post Extras: Print Post   Remind Me!     Send Private Message   Notify ModeratorNotify moderator!
Mr_Chutney
Tosser

Member #4487
Reged: 18/04/03
Loc: Herefordshire
  new 14/01/08 10:34 AM

Nor indeed why you are posting this on a poi forum?!

--------------------
There is no book that can tell you what happened after you're dead except one written by a dead person and dead people don't write. All you have to do is go and and look at a lot of dead people, they're not writing, they just aren't.

Stephen Fry


Post Extras: Print Post   Remind Me!     Send Private Message   Notify ModeratorNotify moderator!
Pages: 1


Using the keywords [read numeric value excel] we found the following similar topics.
 1. Read Numeric value From Excel [4 replies]
 2. Best value glowpoi? [25 replies]
 3. HOP day!!! READ ME! READ ME! READ ME! [51 replies]
 4. FAL4 ESSENTIALS - READ ONLY! [15 replies]
 5. For those who have read Douglas Adams, read on [11 replies]

     Show more..


Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:  Malcolm, Pele, Pyrolific, flash fire, Charles, Dom, georgemc 

Print Thread

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Thread views: 607

Jump to

Contact Administrator Home