No, that=B4s not the problem.....after the A/D- conversion I make a = type cast from "integer" to "float". And if I try to show at first the value of = the variable "voltage_HB1" on the display and then the value of = "voltage_HB2", then I get the right values for both A/D- channels.=20 -----Urspr=FCngliche Nachricht----- Von: Alan B. Pearce [mailto:A.B.Pearce@RL.AC.UK] Gesendet: Donnerstag, 8. Mai 2003 16:47 An: PICLIST@MITVMA.MIT.EDU Betreff: Re: AW: [PIC]:Floating point >....voltage_HB1 and voltage_HB2 are voltages that I get from the A/D- >module. At the end I have to show the voltage on a LCD- Display. But = the >display shows always the wrong value. Now, I don=B4t know, if the = problem is >about the variable "voltage", because I don=B4t know what happens, if >voltage_HB2 is greater then voltage_HB1? But maybe the problem is = caused by >another thing! I suspect your problem is that you are using "float" to describe the = value from the ADC, when it should be "integer". If it is not properly type = cast then you will end up with funny things happening. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics