Click here to Skip to main content
15,886,104 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to convert this VB10 to VB6 Pin
Dave Kreskowiak17-Sep-14 17:14
mveDave Kreskowiak17-Sep-14 17:14 
AnswerRe: how to convert this VB10 to VB6 Pin
NightWizzard21-Sep-14 2:58
NightWizzard21-Sep-14 2:58 
QuestionVb.net + SQL Server : Speed difference using float vs Decimal Pin
dilkonika16-Sep-14 14:32
dilkonika16-Sep-14 14:32 
AnswerRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Bernhard Hiller16-Sep-14 21:40
Bernhard Hiller16-Sep-14 21:40 
AnswerRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Chris Quinn16-Sep-14 21:42
Chris Quinn16-Sep-14 21:42 
AnswerRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Richard MacCutchan16-Sep-14 21:44
mveRichard MacCutchan16-Sep-14 21:44 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
dilkonika17-Sep-14 4:19
dilkonika17-Sep-14 4:19 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Dave Kreskowiak17-Sep-14 4:58
mveDave Kreskowiak17-Sep-14 4:58 
dilkonika wrote:
have to use a kind of data type that accept digits after decimal point.


Not if you get a little creative. Multiple all values by 100 and You can use integer types quite easily.

If you're still thinking about using single/double/float for money values, think again. Try this and see what you get:
static void Main(string[] args)
{
    float x = 12345678.33f;

    Console.WriteLine(string.Format("{0:N8}", x));
}

A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
dilkonika17-Sep-14 5:02
dilkonika17-Sep-14 5:02 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Dave Kreskowiak17-Sep-14 5:08
mveDave Kreskowiak17-Sep-14 5:08 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Eddy Vluggen17-Sep-14 5:13
professionalEddy Vluggen17-Sep-14 5:13 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Eddy Vluggen17-Sep-14 7:27
professionalEddy Vluggen17-Sep-14 7:27 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Richard MacCutchan17-Sep-14 5:03
mveRichard MacCutchan17-Sep-14 5:03 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
dilkonika17-Sep-14 6:37
dilkonika17-Sep-14 6:37 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Richard MacCutchan17-Sep-14 7:23
mveRichard MacCutchan17-Sep-14 7:23 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
dilkonika17-Sep-14 14:26
dilkonika17-Sep-14 14:26 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Dave Kreskowiak17-Sep-14 17:15
mveDave Kreskowiak17-Sep-14 17:15 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Richard MacCutchan17-Sep-14 20:57
mveRichard MacCutchan17-Sep-14 20:57 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Eddy Vluggen17-Sep-14 7:49
professionalEddy Vluggen17-Sep-14 7:49 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
dilkonika17-Sep-14 8:04
dilkonika17-Sep-14 8:04 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Dave Kreskowiak17-Sep-14 17:18
mveDave Kreskowiak17-Sep-14 17:18 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
dilkonika18-Sep-14 4:39
dilkonika18-Sep-14 4:39 
GeneralRe: Vb.net + SQL Server : Speed difference using float vs Decimal Pin
Dave Kreskowiak18-Sep-14 5:41
mveDave Kreskowiak18-Sep-14 5:41 
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 

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.