i have a text box, which the user may enter cash for sales. however, it doesnt seem to recognise anything after a decimal point.

for example, if the product costs £300.07, it will only calculate the change ( if any) or display an error message if the tender is 300 or lower, or higher than 300.01. it doesnt seem to recognise the number if there is anything after the decimal place.

i sorted it. i didnt use the else case. forgot about that.