Hi guys, this may seem like a newbie type of question but i'm really stumped on this one. I want to use the sqrt() function from math.h on two variables which are unsigned int. if i do: unsigned int Id, Iq; double temp; Id = ///some function call temp = (double)Id; and assuming Id contains say 0x2700, after executing the 3rd line, temp = 0, not 9984 as it should. Does anyone know how I can convert from unsinged int to double besides the way I've tried. thanks a lot. Nick
Hi Jon and All, We are using a third party Debugger called FS2 by First Silicon Solutions. It is designed to work with the Keil environment. It comes with its own simulator. Since we use that debugger to do board level debug, we also used its simulator to do the simulations. So it is not the Keil Simulator, but a third party simulator, which is designed to work within the Keil IDE. That could explain the problem I was having with simulating my code, but its all resolved now. So again, it was a third party simulator I was using, not the Keil simulator, and I indicated that when I said we're using the Keil/FS2 Simulator. thanks -Nick
Perhaps you need to alert these First Silicon Solutions guys that maybe there is a bug in their simulator?