Can you post more of the code... like the variable declarations for Percent, A & B, etc. I've never used Bytecraft's compiler, but something like that shouldn't be a challenge... Dale -- "Curiosity is the very basis of education and if you tell me that curiosity killed the cat, I say only the cat died nobly." - Arnold Edinborough On Fri, 22 Feb 2002, Rich Mcelroy wrote: > I'm using Bytecraft's compiler for MPLAB. it does basic math, but the > results I'm getting indicate that it is droping anything after the integer > on my calculations. I'm trying to calculate a percentage: > > Percent = A/B * 100; something like that. I have been getting a zero for > percent everytime. -- 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