Re: TIB: whole # to decimal (PS im stupid)


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

Re: TIB: whole # to decimal (PS im stupid)



 

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

 
ok i figured it out within 2 seconds :)
change (up twoards the top)
If 10^x/NUM < 1
to
If 10^x/NUM<=1

but that makes 10, 100, 1000 all = .1
if thats really what you want to do

:)

ben


References: