Hello, i Have problem with Cx51 compiler, that is when ever iam using floating number
lng=1723.4545; lng=*0.01745329252;
i Have problem with Cx51 compiler, Yes. You missed an important chapter in the documentation: http://www.keil.com/support/man/docs/c51/c51_ap_floatingpt.htm please help me that i want exact number with minimum 15 digits after decimal point, i dont want rounding the values. You will not get 15 digits with 32-bit float, which is what the C51 supports.
Out of curiousity, what system are you using that can measure the input to 15 significant digits? That's a pretty precise instrument.
Out of curiousity, what system are you using that can measure the input to 15 significant digits?<p> Maybe the precision is needed for some kind of IIR filter (with w close to 0 or 1). Those things can be nasty in this regard.
Hello, please give me some C code that can run in Cx51 compiler for calculating accurate distance b/w 2 latitudes and longitudes. its very urgent thanks & regards Kiran Kumar D kiran.sreego@yahoo.com
Already answered in your cross-post: http://www.8052.com/forum/read.phtml?id=118265 It would be polite to include links between your cross-posts, so that people in one forum don't waste time repeating answers that have already been given in another!
one more case of someone wanting a mouse to do the work of an elephant. Why on earth do so many want to do things with the '51 that is so far beyond what it can do in a reasonable way? Erik