• Getting odd floating point results.
    ((lat2-lat1)*BETA*(lat2-lat1)*BETA + (long2-long1)*delta*(long2-long1)*delta) I'm writing some C code and I am getting some screwy results. Basically lat1, lat2, long1, long2 are all latitudes and...
  • printing sizeof() values
    I'm trying to print out sizeof() values for some of my structures. They are coming out incorrect. Here is a small table in which I've done this on different platforms: Linux : sizeof(TChannel) = 1460...
  • Centronics printer printing junk value
    I am interfacing Epson LX-300 printer with 8051 using the parallel port. I have used 8 data lines, i strobe and 1 busy line for this purpose. I am able to send data to printer and it works fine. The...
  • round result of floating point calcualtion
    Hello, I have a problem with the accuracy of the result when I divide 2 float values. This is the line in my source Code: dds_word.long_dds = 2.147483648E16 / 7.1312E7 The result which I...
  • Printing
    Hello, 1) May I know how to print with the "syntax coloring" on? 2) How do you prevent the address,date,time and page number from being printed? I just want to print my code. ( note:- I want to print...