Re: TIB: whole # to decimal


[Prev][Next][Index][Thread]

Re: TIB: whole # to decimal






Matt wrote:

> In my prog I want the user to enter a number but the calc to consider
> that # a decimal
> For example:  User enters 75(A)
>               Calc thinks .75
> how do i do this

like ...
ClCLD
-1 -> x
Prompt NUM
Lbl INCX
x+1 -> x
if 10^x/num<1
Then
Goto INCX
end
if 1<=(10^x/NUM)<=10
then
Num/10^x -> num
end
disp num


this program works for all numbers except numbers divisble by 10
i saw this problem orignally, but i dont know how to fix it
if anyone can, please tell me for my own intellectual curiosity, thanks

ben




Follow-Ups: References: