PDA

Click to See Complete Forum and Search --> : division involving zeros


RYKS
Jul 18th, 2005, 01:05 PM
hi
i have a database that stores values and divides them later. some of the values will be zero thats if the user entered nothing there. but when i try dividing it gives me errors if the data stored are zeros. how can i overcome this?

kfcSmitty
Jul 18th, 2005, 01:07 PM
just use an if statement..if the value = 0, then skip the divide, else, divide