Results 1 to 2 of 2

Thread: division involving zeros

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2005
    Posts
    30

    division involving zeros

    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?

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: division involving zeros

    just use an if statement..if the value = 0, then skip the divide, else, divide

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width