just to say i've already posted this on the realgametools.net site.
ok, so i'm trying to get db to do some adding and subtracting the a coupla big numbers, but it seems it doesnt like going to more than about 3 decimal places :s
The code (coming up) in the end works up untill the final calculation (hf#-workf#) where hf# is something to the power om minus 29, and workf# is something like 1.5
typical values for workfunction are anything between 1.5 and 4.5, and wavelength andything between about 300 and 700
set window on
set window size 640,480
set window position 300,175
do
cls
h#=6.63*10.0^(-34)
v#=3*10.0^(8)
input "Enter work function : "; workf#
input "Enter wavelength (nm) : "; wavelength#
freq#=v#/wavelength#
hf#=h#*freq#
kemax#=hf#-workf#
if kemax#>=0
print "photoelectric effect occurs" : print kemax#
else
print "Photoelectric effect doesn't occur" : print kemax#
endif
print "press any key to restart"
suspend for key
loop
can anyone give me a few pointers?