Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
QuestionFiles between one or several computers? Via a netowor.? Pin
ahlm20-Nov-09 11:51
ahlm20-Nov-09 11:51 
AnswerRe: Files between one or several computers? Via a netowor.? Pin
mehrdad33321-Nov-09 0:22
mehrdad33321-Nov-09 0:22 
GeneralRe: Files between one or several computers? Via a netowor.? Pin
ahlm21-Nov-09 1:00
ahlm21-Nov-09 1:00 
GeneralMessage Closed Pin
21-Nov-09 1:33
stancrm21-Nov-09 1:33 
GeneralRe: Files between one or several computers? Via a netowor.? Pin
ahlm21-Nov-09 3:12
ahlm21-Nov-09 3:12 
GeneralRe: Files between one or several computers? Via a netowor.? Pin
mehrdad33321-Nov-09 8:09
mehrdad33321-Nov-09 8:09 
GeneralRe: Files between one or several computers? Via a netowor.? Pin
dojohansen23-Nov-09 10:33
dojohansen23-Nov-09 10:33 
Questioncan anyone help plz Pin
Jassim Rahma20-Nov-09 11:32
Jassim Rahma20-Nov-09 11:32 
AnswerRe: can anyone help plz Pin
Not Active20-Nov-09 13:28
mentorNot Active20-Nov-09 13:28 
GeneralRe: can anyone help plz Pin
dojohansen23-Nov-09 10:35
dojohansen23-Nov-09 10:35 
GeneralRe: can anyone help plz Pin
Not Active23-Nov-09 12:10
mentorNot Active23-Nov-09 12:10 
GeneralRe: can anyone help plz Pin
dojohansen23-Nov-09 23:27
dojohansen23-Nov-09 23:27 
Questionload combobox values into datagrid combobox Pin
Ronni Marker20-Nov-09 10:48
Ronni Marker20-Nov-09 10:48 
AnswerRe: load combobox values into datagrid combobox Pin
Ronni Marker20-Nov-09 11:09
Ronni Marker20-Nov-09 11:09 
Questioncodeproject template empty Pin
Rassler4820-Nov-09 6:53
Rassler4820-Nov-09 6:53 
AnswerRe: codeproject template empty Pin
Richard MacCutchan20-Nov-09 7:16
mveRichard MacCutchan20-Nov-09 7:16 
GeneralRe: codeproject template empty Pin
Rassler4820-Nov-09 20:49
Rassler4820-Nov-09 20:49 
GeneralRe: codeproject template empty Pin
Richard MacCutchan20-Nov-09 21:13
mveRichard MacCutchan20-Nov-09 21:13 
GeneralRe: codeproject template empty Pin
Rassler4821-Nov-09 5:37
Rassler4821-Nov-09 5:37 
Questionrequest: fixing a codeproject programm Pin
no_idea20-Nov-09 6:40
no_idea20-Nov-09 6:40 
AnswerRe: request: fixing a codeproject programm Pin
DaveyM6920-Nov-09 8:18
professionalDaveyM6920-Nov-09 8:18 
GeneralRe: request: fixing a codeproject programm Pin
no_idea20-Nov-09 10:16
no_idea20-Nov-09 10:16 
GeneralRe: request: fixing a codeproject programm Pin
DaveyM6920-Nov-09 16:29
professionalDaveyM6920-Nov-09 16:29 
GeneralRe: request: fixing a codeproject programm Pin
dojohansen23-Nov-09 10:50
dojohansen23-Nov-09 10:50 
Seeing as it's a graph you should cast it to double. Decimal would work too, but is more expensive and offers no benefit in this application.

Try this: Open a new tab. Type "javascript:alert(0.1+0.2)" in the address bar. Now gape at the result, which is close to but not quite 0.3 - and read on to stop gaping.

Decimal is a type that can represent decimal numbers accurately. Computer hardware is of course made for working with binary numbers.

It is not possible, in general, to represent numbers in different bases accurately using the same number of digits, and sometimes not using *any* number of digits (though it is always possible to represent rational numbers as ratios in any base, and never possible to represent any irrational number as a ratio, in any base). For example, one third is an infinite sequence in base ten (0.33333333...) but it is simply 0.1 in base 3.

Decimal is useful in financial applications where it matters that base-ten numbers are exactly represented, but they are comparatively slow since your computer hardware doesn't have instructions to do arithmetics with them. The type must instead provide a software algorithm that manipulates the bits representing a decimal number. By all means, you'll probably never notice any difference, but in general, use double whenever you don't need an exact decimal-number representation. This is a case of drawing a graph, hence of mapping the value in question to a pixel, and it resolutely doesn't matter if it always snaps to the pixel it would have done if you used a decimal, so clearly the correct choice is double. Smile | :)
QuestionAlter table in dataset Pin
daniel kuperberg20-Nov-09 6:36
daniel kuperberg20-Nov-09 6:36 

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.