puan yada puan_sayi sıfır değerini alıyormu hiç???
Cint i kullanmanı tavsiye ederim..

örn:
pt = cint(foto("puan")) / cint(foto("puan_sayi"))