Click here to Skip to main content
15,890,579 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: math.round function has a bug? Pin
Stuart Dootson26-Jul-08 1:34
professionalStuart Dootson26-Jul-08 1:34 
GeneralRe: math.round function has a bug? Pin
supercat926-Jul-08 8:53
supercat926-Jul-08 8:53 
AnswerRe: math.round function has a bug? Pin
Chinners24-Jul-08 23:20
Chinners24-Jul-08 23:20 
AnswerRe: math.round function has a bug? Pin
Steve Mayfield25-Jul-08 12:24
Steve Mayfield25-Jul-08 12:24 
GeneralRe: math.round function has a bug? Pin
Guffa25-Jul-08 12:45
Guffa25-Jul-08 12:45 
GeneralRe: math.round function has a bug? Pin
Kel_25-Jul-08 23:16
Kel_25-Jul-08 23:16 
AnswerRe: math.round function has a bug? Pin
ghle26-Jul-08 4:52
ghle26-Jul-08 4:52 
AnswerRe: math.round function has a bug? Pin
Thomas Stockwell28-Jul-08 2:15
professionalThomas Stockwell28-Jul-08 2:15 
The Round method does not use what most of the community expects the Round method to use with regards to its function. The reason being is because the Round method rounds to the nearest even integer, in a link following you will see it is termed: the bankers method. The Round method has two options: MidpointRounding.ToEven or MidpointRounding.AwayFromZero. Neither of these is exactly what a user may want to see. You may find a better here[^], at this URL (found by google) their is a custom function that should round based on what most of the community expects. I have no idea why Microsoft chose non-standard forms of the Round function.

Regards,
Thomas Stockwell

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Visit my homepage Oracle Studios

Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com

Questionpage authorization Pin
Ebube24-Jul-08 22:21
Ebube24-Jul-08 22:21 
AnswerRe: page authorization Pin
Steven J Jowett24-Jul-08 22:30
Steven J Jowett24-Jul-08 22:30 
GeneralRe: page authorization Pin
Ebube28-Jul-08 23:49
Ebube28-Jul-08 23:49 
QuestionXML Attributes from XML File Pin
Andrew Streetman24-Jul-08 16:11
Andrew Streetman24-Jul-08 16:11 
AnswerRe: XML Attributes from XML File Pin
Mycroft Holmes24-Jul-08 19:40
professionalMycroft Holmes24-Jul-08 19:40 
QuestionHow to search specific record faster Pin
MAP Tiger24-Jul-08 14:08
MAP Tiger24-Jul-08 14:08 
AnswerRe: How to search specific record faster Pin
Guffa24-Jul-08 15:07
Guffa24-Jul-08 15:07 
GeneralRe: How to search specific record faster Pin
MAP Tiger25-Jul-08 1:23
MAP Tiger25-Jul-08 1:23 
GeneralRe: How to search specific record faster Pin
Guffa25-Jul-08 1:48
Guffa25-Jul-08 1:48 
GeneralRe: How to search specific record faster Pin
MAP Tiger25-Jul-08 3:26
MAP Tiger25-Jul-08 3:26 
GeneralRe: How to search specific record faster Pin
MAP Tiger25-Jul-08 10:45
MAP Tiger25-Jul-08 10:45 
AnswerRe: How to search specific record faster Pin
Mycroft Holmes24-Jul-08 19:43
professionalMycroft Holmes24-Jul-08 19:43 
GeneralRe: How to search specific record faster Pin
MAP Tiger25-Jul-08 1:15
MAP Tiger25-Jul-08 1:15 
GeneralRe: How to search specific record faster Pin
Mycroft Holmes25-Jul-08 13:39
professionalMycroft Holmes25-Jul-08 13:39 
GeneralRe: How to search specific record faster Pin
MAP Tiger25-Jul-08 13:50
MAP Tiger25-Jul-08 13:50 
GeneralRe: How to search specific record faster Pin
Mycroft Holmes25-Jul-08 15:41
professionalMycroft Holmes25-Jul-08 15:41 
GeneralRe: How to search specific record faster Pin
MAP Tiger25-Jul-08 16:19
MAP Tiger25-Jul-08 16:19 

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.