??? 06/16/06 07:34 Read: times |
#118393 - Specification! Responding to: ???'s previous message |
Aha - you're back!
What was the big panic, then? Kiran Kumar said:
Let me make it clear that its not the problem with the formula i use to calculate but with the floating point number that C51 does not support. Wouldn't it have saved everyone a load of time if you'd made that clear in the first place?! I hope you have also updated your cross-post on the Keil forum with this necessary information... You said:
i want an C code which can calculate Accurate distance b/w 2 given latitudes and longitudes. iam using ... KEIL IDE for C coding That gave no indication that you already knew the formula, and only wanted the double-precision floating point! i did the same in VC++ and C#.NET i got the precision i needed Well VC++ runs on a 32-bit machine, probably clocking at a GHz or so, and with hundreds of MB of RAM, etc, etc... Expecting to get the same performance out of a mere 8-bit controller is optimistic, to say the least! it support only 32 bit how to enable the 64 bit calculation. That is clearly stated on the product datasheet - you chose the wrong product! You will have to make or buy your own double-precision floating-point library, or pick a more suitable processor. See this thread on the Keil forum: http://www.keil.com/discuss/docs/thread7218.htm Some libraries are suggested, and some chips with hardware maths support. You still haven't mentioned how you manage to get input data with 10cm precision in the first place... |