Click here to Skip to main content
15,887,414 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMilliseconds to Minutes Pin
Stigmurder10-May-07 6:19
Stigmurder10-May-07 6:19 
AnswerRe: Milliseconds to Minutes Pin
Dave Kreskowiak10-May-07 6:33
mveDave Kreskowiak10-May-07 6:33 
GeneralRe: Milliseconds to Minutes Pin
Stigmurder10-May-07 7:19
Stigmurder10-May-07 7:19 
JokeRe: Milliseconds to Minutes Pin
CPallini10-May-07 9:03
mveCPallini10-May-07 9:03 
GeneralRe: Milliseconds to Minutes Pin
Dave Kreskowiak10-May-07 10:42
mveDave Kreskowiak10-May-07 10:42 
QuestionVB6 Int() Function Pin
Marcus J. Smith10-May-07 5:05
professionalMarcus J. Smith10-May-07 5:05 
AnswerRe: VB6 Int() Function Pin
Dave Kreskowiak10-May-07 5:17
mveDave Kreskowiak10-May-07 5:17 
GeneralRe: VB6 Int() Function [modified] Pin
Marcus J. Smith10-May-07 5:26
professionalMarcus J. Smith10-May-07 5:26 
Dave Kreskowiak wrote:
So what's the point of all this? Are you trying to round down to the next lower integer, be it a positive or negative value? -9 is lower than -8.12 for example.


Based on what the code is doing it would appear that it should literally move it to the next highest number and cut it off at the decimal. The problem is when I simply converted the values to a more .NET way of coding. The .NET way gives me the answer I would expect, the VB6 way does not. It almost seems to ignore the fact that it is negative so the numbers go the other way when rounding UP. This is a production system so I need it to give the same answers and I can worry about whether they are correct after I get a match.


-- modified at 11:39 Thursday 10th May, 2007

It would appear that it always rounds to the number lower not closer to zero so -8.12 goes to -9 whereas 20.8 goes to 20. That seems like a bug to me.


CleaKO

"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

GeneralRe: VB6 Int() Function Pin
Dave Kreskowiak10-May-07 6:28
mveDave Kreskowiak10-May-07 6:28 
GeneralRe: VB6 Int() Function Pin
Marcus J. Smith10-May-07 6:38
professionalMarcus J. Smith10-May-07 6:38 
AnswerRe: VB6 Int() Function Pin
Guffa10-May-07 8:18
Guffa10-May-07 8:18 
GeneralRe: VB6 Int() Function Pin
Marcus J. Smith10-May-07 8:28
professionalMarcus J. Smith10-May-07 8:28 
QuestionCaesar Cipher Crack Pin
Irshadt10-May-07 3:27
Irshadt10-May-07 3:27 
AnswerRe: Caesar Cipher Crack Pin
Colin Angus Mackay10-May-07 3:29
Colin Angus Mackay10-May-07 3:29 
QuestionCaesar Cipher Crack Pin
Irshadt10-May-07 3:24
Irshadt10-May-07 3:24 
AnswerRe: Caesar Cipher Crack Pin
Colin Angus Mackay10-May-07 3:30
Colin Angus Mackay10-May-07 3:30 
GeneralRe: Caesar Cipher Crack Pin
Christian Graus10-May-07 10:29
protectorChristian Graus10-May-07 10:29 
QuestionRe: Regular Expression Pin
ant1xxx10-May-07 1:55
ant1xxx10-May-07 1:55 
AnswerRe: Regular Expression Pin
Christian Graus10-May-07 2:14
protectorChristian Graus10-May-07 2:14 
QuestionPassing custom object to web service Pin
BobsAfro10-May-07 1:15
BobsAfro10-May-07 1:15 
AnswerRe: Passing custom object to web service Pin
nlarson1110-May-07 4:05
nlarson1110-May-07 4:05 
GeneralRe: Passing custom object to web service Pin
BobsAfro10-May-07 5:42
BobsAfro10-May-07 5:42 
GeneralRe: Passing custom object to web service Pin
nlarson1110-May-07 5:48
nlarson1110-May-07 5:48 
GeneralRe: Passing custom object to web service Pin
nlarson1110-May-07 5:52
nlarson1110-May-07 5:52 
GeneralRe: Passing custom object to web service Pin
BobsAfro10-May-07 5:54
BobsAfro10-May-07 5:54 

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.