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

Visual Basic

 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
dilkonika18-Sep-14 6:08
dilkonika18-Sep-14 6:08 
QuestionRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Eddy Vluggen18-Sep-14 7:27
professionalEddy Vluggen18-Sep-14 7:27 
AnswerRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
dilkonika18-Sep-14 13:18
dilkonika18-Sep-14 13:18 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Dave Kreskowiak18-Sep-14 14:23
mveDave Kreskowiak18-Sep-14 14:23 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
dilkonika18-Sep-14 14:50
dilkonika18-Sep-14 14:50 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Dave Kreskowiak18-Sep-14 15:18
mveDave Kreskowiak18-Sep-14 15:18 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Eddy Vluggen18-Sep-14 22:27
professionalEddy Vluggen18-Sep-14 22:27 
AnswerRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
GuyThiebaut19-Sep-14 2:21
professionalGuyThiebaut19-Sep-14 2:21 
The difficulty appears to be arising because you are comparing speed with accuracy - two things that by their very nature cannot be compared.

So you need to decide - do you want speed or accuracy?

If you really want more information regarding why floating point is used you will need to read up on computer hardware and architecture.
Basically computers are not decimal counting machines but binary counting machines. In order to maintain a decent processing speed numbers are stored as floating point,. The consequence is that repeated arithmetic operations on large numbers(numbers with many digits either side of the decimal point) can cause precision errors. Most people not running repeated arithmetic calculations with large numbers requiring a high degree of precision - Excel works perfectly well with floating point numbers.
“That which can be asserted without evidence, can be dismissed without evidence.”

― Christopher Hitchens

GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
dilkonika19-Sep-14 4:20
dilkonika19-Sep-14 4:20 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
GuyThiebaut19-Sep-14 4:41
professionalGuyThiebaut19-Sep-14 4:41 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Dave Kreskowiak19-Sep-14 8:19
mveDave Kreskowiak19-Sep-14 8:19 
QuestionCreate desktop shortcut on installation of my app. vb2010 Pin
Member 1108371515-Sep-14 9:26
Member 1108371515-Sep-14 9:26 
AnswerRe: Create desktop shortcut on installation of my app. vb2010 Pin
Richard MacCutchan15-Sep-14 21:31
mveRichard MacCutchan15-Sep-14 21:31 
QuestionAsync Help Pin
byka15-Sep-14 6:13
byka15-Sep-14 6:13 
AnswerRe: Async Help Pin
Eddy Vluggen15-Sep-14 8:19
professionalEddy Vluggen15-Sep-14 8:19 
GeneralRe: Async Help Pin
byka16-Sep-14 2:14
byka16-Sep-14 2:14 
GeneralRe: Async Help Pin
Eddy Vluggen16-Sep-14 2:58
professionalEddy Vluggen16-Sep-14 2:58 
QuestionClass does not support Automation... Error calling a com Object from Vb6 Pin
Member 1034939115-Sep-14 2:06
Member 1034939115-Sep-14 2:06 
QuestionRe: Class does not support Automation... Error calling a com Object from Vb6 Pin
Eddy Vluggen15-Sep-14 8:13
professionalEddy Vluggen15-Sep-14 8:13 
AnswerRe: Class does not support Automation... Error calling a com Object from Vb6 Pin
Member 1034939116-Sep-14 0:20
Member 1034939116-Sep-14 0:20 
GeneralRe: Class does not support Automation... Error calling a com Object from Vb6 Pin
Eddy Vluggen16-Sep-14 3:00
professionalEddy Vluggen16-Sep-14 3:00 
QuestionHow to sum, two columns from the true dbgrid vb.net Pin
Member 1107913912-Sep-14 17:57
Member 1107913912-Sep-14 17:57 
AnswerRe: How to sum, two columns from the true dbgrid vb.net Pin
Eddy Vluggen15-Sep-14 8:20
professionalEddy Vluggen15-Sep-14 8:20 
QuestionGet security code of mobile phones Pin
Otekpo Emmanuel12-Sep-14 12:24
Otekpo Emmanuel12-Sep-14 12:24 
SuggestionRe: Get security code of mobile phones Pin
Richard MacCutchan12-Sep-14 22:08
mveRichard MacCutchan12-Sep-14 22:08 

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.