Hi Johan,

The modulus command will only return the remainder of your calculation, not the decimal value like you wanted. Instead, you need a floating point math routine in your code to get the results your after.

Go to http://www.cambsnet.net/pbasic/FP.htm and download the fp.zip file from the link on that page. This is a long work around but it should get the result you're after.

Good coding,

Sherm