Click here to Skip to main content
15,910,358 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Dave Kreskowiak21-Aug-05 18:13
mveDave Kreskowiak21-Aug-05 18:13 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus21-Aug-05 18:15
protectorChristian Graus21-Aug-05 18:15 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Dave Kreskowiak22-Aug-05 6:49
mveDave Kreskowiak22-Aug-05 6:49 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus22-Aug-05 11:47
protectorChristian Graus22-Aug-05 11:47 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Dave Kreskowiak23-Aug-05 2:13
mveDave Kreskowiak23-Aug-05 2:13 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus23-Aug-05 13:23
protectorChristian Graus23-Aug-05 13:23 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
progload21-Aug-05 19:03
progload21-Aug-05 19:03 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus21-Aug-05 19:16
protectorChristian Graus21-Aug-05 19:16 
Thanks for the links.

Mathematically, you CAN divide by zero, but what you get is "infinity".

Actually, this is not true. Google some maths sites if you don't believe me. Either way, as the article states, this leaves the way open for some serious problems in business apps that don't work hard to avoid this happening.

I don't understand the integer divide ( \ ) thing. Does that stop VB from implicitly converting ints to floats ? I guess C#, being more strongly typed, wouldn't need that, and that would go *some* way to explaining why C# and VB.NET behave so differently from one another in this instance.

Thanks for the info.


Christian Graus - Microsoft MVP - C++
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
progload21-Aug-05 21:06
progload21-Aug-05 21:06 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus22-Aug-05 11:43
protectorChristian Graus22-Aug-05 11:43 
AnswerRe: VBer new to VB.net - handles divide by zero? Pin
Daniel132418-Aug-05 16:15
Daniel132418-Aug-05 16:15 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus18-Aug-05 17:09
protectorChristian Graus18-Aug-05 17:09 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Daniel132418-Aug-05 17:25
Daniel132418-Aug-05 17:25 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus18-Aug-05 17:32
protectorChristian Graus18-Aug-05 17:32 
AnswerRe: VBer new to VB.net - handles divide by zero? Pin
progload18-Aug-05 19:38
progload18-Aug-05 19:38 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
DaveC42691319-Aug-05 3:27
DaveC42691319-Aug-05 3:27 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
progload19-Aug-05 3:50
progload19-Aug-05 3:50 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
DaveC42691319-Aug-05 4:24
DaveC42691319-Aug-05 4:24 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
progload19-Aug-05 4:53
progload19-Aug-05 4:53 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
DaveC42691319-Aug-05 5:20
DaveC42691319-Aug-05 5:20 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
Christian Graus21-Aug-05 19:19
protectorChristian Graus21-Aug-05 19:19 
AnswerRe: VBer new to VB.net - handles divide by zero? Pin
Thomas Stockwell19-Aug-05 8:32
professionalThomas Stockwell19-Aug-05 8:32 
GeneralRe: VBer new to VB.net - handles divide by zero? Pin
rwestgraham19-Aug-05 9:05
rwestgraham19-Aug-05 9:05 
Generalcombing a vb program with office command ! Pin
microuser_200018-Aug-05 9:08
microuser_200018-Aug-05 9:08 
GeneralRe: combing a vb program with office command ! Pin
microuser_200021-Aug-05 8:00
microuser_200021-Aug-05 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.