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.

Recommended Answers

All 2 Replies

Please check the datatype you have specified

;), dude, he said he figured it out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.