LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 385 users online 192223 members 667 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Dictionary | News | FAQ
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
0 online / 0 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

visual basic problem
dividing by zero
Replies: 8Last Post Mar. 31, 2006 9:15pm by EarthEmpire
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( EarthEmpire )


Visionary

Patron
Reply
ok, here is a line from my code, and it says that there is a msitake by dividing by zero, i dont know what to do with it:

       sngDime = (sngChange - 1000 * intThousand - 100 * intHundred - 50 * intFifty - 20 * intTwenty - 10 * intTen - 5 * intFive - 2 * intTwo - 1 * intOne - 0.25 * sngQuarter) \ (0.1)


-------
Remember, remember the 9th of November. Never Refer.
DeviantArt Myspace


8:52 am on Feb. 22, 2006 | Joined April 2005 | 735 Days Active
Join to learn more about EarthEmpire Alberta, Canada | Straight Female | 4340 Posts | 9083 Points
Post from this position was omitted due to content violations
( EarthEmpire )


Visionary

Patron
Reply
wow that was so helpful..

-------
Remember, remember the 9th of November. Never Refer.
DeviantArt Myspace

8:54 am on Feb. 22, 2006 | Joined April 2005 | 735 Days Active
Join to learn more about EarthEmpire Alberta, Canada | Straight Female | 4340 Posts | 9083 Points
squirellplayingtag


Dairy Product Addict

Patron
Reply
Is sngDime a double or float?

-------
"The most abundant element in the universe is
hydrogen, then second is stupidity."-Harlan Ellison
"What good fortune for our governments that the
people do not think."-Hitler

9:18 am on Feb. 22, 2006 | Joined Jan. 2003 | 1260 Days Active
Join to learn more about squirellplayingtag Maryland, United States | Straight Male | 6458 Posts | 27128 Points
( EarthEmpire )


Visionary

Patron
Reply
truly i dont know.. i think double...

-------
Remember, remember the 9th of November. Never Refer.
DeviantArt Myspace

9:33 am on Feb. 22, 2006 | Joined April 2005 | 735 Days Active
Join to learn more about EarthEmpire Alberta, Canada | Straight Female | 4340 Posts | 9083 Points
mephisto mortis


Enlightened One
Reply
Quote: from EarthEmpire at 12:33 pm on Feb. 22, 2006

truly i dont know.. i think double...

its been about 4 years since ive looked at vb, but arent you suppose to define that when you define that variable?

-------
Lifes a bitch.  If it were a slut it'd be too easy.


2:37 pm on Mar. 27, 2006 | Joined June 2004 | 969 Days Active
Join to learn more about mephisto mortis New York, United States | Straight Male | 5855 Posts | 16174 Points
( EarthEmpire )


Visionary

Patron
Reply
lol, thanks for the replies, btw., i declared the variables before i wrote that. but it really doesnt matter now.. i handed it in weeks ago and still got 90 somehow.. thanks though

-------
Remember, remember the 9th of November. Never Refer.
DeviantArt Myspace

6:43 pm on Mar. 31, 2006 | Joined April 2005 | 735 Days Active
Join to learn more about EarthEmpire Alberta, Canada | Straight Female | 4340 Posts | 9083 Points
squirellplayingtag


Dairy Product Addict

Patron
Reply
Didn't I post a reply to this somewhere with all the code worked out? Oh well.

-------
"The most abundant element in the universe is
hydrogen, then second is stupidity."-Harlan Ellison
"What good fortune for our governments that the
people do not think."-Hitler

8:23 pm on Mar. 31, 2006 | Joined Jan. 2003 | 1260 Days Active
Join to learn more about squirellplayingtag Maryland, United States | Straight Male | 6458 Posts | 27128 Points
( EarthEmpire )


Visionary

Patron
Reply
Quote: from squirellplayingtag at 8:23 pm on Mar. 31, 2006

Didn't I post a reply to this somewhere with all the code worked out? Oh well.

i made two posts about it.. thanks, i looked at yours too, it was really helpful.. i wish my teacher could explain stuff better...

-------
Remember, remember the 9th of November. Never Refer.
DeviantArt Myspace


9:15 pm on Mar. 31, 2006 | Joined April 2005 | 735 Days Active
Join to learn more about EarthEmpire Alberta, Canada | Straight Female | 4340 Posts | 9083 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic