>> It will return a the value you enter but will not put the decimal in the right spot.
Ok, good. So the problem is likely with the dflag and/or dplace variable. When I look at that part of the code, I see that this:is never actually called. It is not under a case statement. Where did you mean for that code to be run?Code:if (dflag==1) { dplace*=10; } pos++;