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

Visual Basic

 
QuestionRecommendation for barcode readers Pin
David Mujica25-Jul-08 3:52
David Mujica25-Jul-08 3:52 
AnswerRe: Recommendation for barcode readers Pin
Luc Pattyn25-Jul-08 4:37
sitebuilderLuc Pattyn25-Jul-08 4:37 
QuestionHow to use content type to send mail Pin
nileshbahirshet25-Jul-08 2:12
nileshbahirshet25-Jul-08 2:12 
QuestionProblem in sending mails with images ... Pin
nileshbahirshet25-Jul-08 1:15
nileshbahirshet25-Jul-08 1:15 
AnswerRe: Problem in sending mails with images ... Pin
ChandraRam25-Jul-08 1:42
ChandraRam25-Jul-08 1:42 
Questionmath.round function has a bug? Pin
CICCIOLO6924-Jul-08 22:51
CICCIOLO6924-Jul-08 22:51 
AnswerRe: math.round function has a bug? Pin
Guffa24-Jul-08 23:14
Guffa24-Jul-08 23:14 
GeneralRe: math.round function has a bug? Pin
supercat925-Jul-08 7:11
supercat925-Jul-08 7:11 
Guffa wrote:
You think that you are putting the exact value 1.222225 in the variable, but that number (as most numbers) can not be exactly represented as a double. What you are actually putting in the variable is something very close to that value, something like 1.22222499999834, which does of course round to 1.22222.


Is there any function to increase a double by the smallest possible non-zero amount? I would expect one could do something like:
Function BumpDouble(ByVal Num As Double) As Double
  Dim Delta, NewVal As Double

  Delta = Num / 36028797018963968 ' (2^55)
  If Delta <> 0 Then
    Do
      NewVal = Num+Delta
      Delta *= 2
    Loop While Num = NewVal
  Else
    ' Need special handling for really really small numbers    
  End If
  Return NewVal  
End Function

But that seems a bit hokey.
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 
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 

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.