Click here to Skip to main content
15,911,789 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Need Help with Shuffle of a deck Pin
riced10-Apr-09 3:59
riced10-Apr-09 3:59 
GeneralRe: Need Help with Shuffle of a deck Pin
ymilan10-Apr-09 4:54
ymilan10-Apr-09 4:54 
QuestionVisual Studio, VB.Net ODBC Read from Progress Database Pin
RDCK9-Apr-09 8:51
RDCK9-Apr-09 8:51 
AnswerRe: Visual Studio, VB.Net ODBC Read from Progress Database Pin
Johan Hakkesteegt9-Apr-09 9:35
Johan Hakkesteegt9-Apr-09 9:35 
GeneralRe: Visual Studio, VB.Net ODBC Read from Progress Database Pin
RDCK14-Apr-09 12:40
RDCK14-Apr-09 12:40 
QuestionRounding problem w/ var of type single Pin
Jon_Boy9-Apr-09 7:09
Jon_Boy9-Apr-09 7:09 
AnswerRe: Rounding problem w/ var of type single Pin
Jon_Boy9-Apr-09 7:22
Jon_Boy9-Apr-09 7:22 
AnswerRe: Rounding problem w/ var of type single Pin
Dave Kreskowiak9-Apr-09 7:46
mveDave Kreskowiak9-Apr-09 7:46 
You'd have to write your own little function to do that. You'd raise 10 to the number of decimal places you need, call it multiplier, then multiply the value in question by this multiplier, truncate the value to an integer, then divide the result by the multiplier.
Private Function RoundOff(ByVal num As Double, ByVal decimalPlaces As Integer) As Double
    Dim multiplier As Double = Math.Pow(10, decimalPlaces)
    Dim result As Double = Math.Truncate(num * multiplier) / multiplier
    Return result
End Function



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Rounding problem w/ var of type single Pin
Jon_Boy9-Apr-09 7:59
Jon_Boy9-Apr-09 7:59 
GeneralRe: Rounding problem w/ var of type single Pin
Dalek Dave9-Apr-09 9:01
professionalDalek Dave9-Apr-09 9:01 
QuestionHow can I add a column using VB? Pin
enipla9-Apr-09 5:28
enipla9-Apr-09 5:28 
AnswerRe: How can I add a column using VB? Pin
Jon_Boy9-Apr-09 6:32
Jon_Boy9-Apr-09 6:32 
GeneralRe: How can I add a column using VB? Pin
enipla9-Apr-09 7:40
enipla9-Apr-09 7:40 
GeneralRe: How can I add a column using VB? Pin
enipla9-Apr-09 8:12
enipla9-Apr-09 8:12 
QuestionSyncLocking [modified] Pin
captainmogo9-Apr-09 4:45
captainmogo9-Apr-09 4:45 
AnswerRe: SyncLocking Pin
Dave Kreskowiak9-Apr-09 8:08
mveDave Kreskowiak9-Apr-09 8:08 
GeneralRe: SyncLocking Pin
captainmogo9-Apr-09 8:14
captainmogo9-Apr-09 8:14 
GeneralRe: SyncLocking Pin
Dave Kreskowiak9-Apr-09 8:18
mveDave Kreskowiak9-Apr-09 8:18 
GeneralRe: SyncLocking [modified] Pin
captainmogo9-Apr-09 8:30
captainmogo9-Apr-09 8:30 
QuestionClickonce and command line args? Pin
Jon_Boy9-Apr-09 3:44
Jon_Boy9-Apr-09 3:44 
AnswerRe: Clickonce and command line args? Pin
Dave Kreskowiak9-Apr-09 4:04
mveDave Kreskowiak9-Apr-09 4:04 
GeneralRe: Clickonce and command line args? Pin
Jon_Boy9-Apr-09 4:33
Jon_Boy9-Apr-09 4:33 
GeneralRe: Clickonce and command line args? Pin
Dave Kreskowiak9-Apr-09 4:43
mveDave Kreskowiak9-Apr-09 4:43 
GeneralRe: Clickonce and command line args? Pin
Jon_Boy9-Apr-09 4:58
Jon_Boy9-Apr-09 4:58 
GeneralRe: Clickonce and command line args? Pin
Eddy Vluggen9-Apr-09 8:30
professionalEddy Vluggen9-Apr-09 8:30 

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.