here is what i am talking about:
http://forum.thegamecreators.com/?m=forum_view&t=39505&b=1
IanM has given a this snipped too:
function IsNumeric(V as string)
local Pos as integer
local DecPoint as integer
local Ch as string
for Pos=1 to len(V)
Ch = mid$( V, Pos )
if Ch = "."
if DecPoint = 1 then exitfunction 0
DecPoint = 1
else
if Ch < "0" or Ch > "9" then exitfunction 0
endif
next
endfunction 1
but how can i use it , i tried :
while (IsNumeric(str$(principal#))=0)
print "Try Again"
input "Principal: ",principal#
endwhile
but that doesnt work