Click here to Skip to main content
15,562,223 members
Home / Discussions / C#
   

C#

 
AnswerRe: PRE Tagged Pin
Luc Pattyn11-Apr-11 9:16
sitebuilderLuc Pattyn11-Apr-11 9:16 
AnswerRe: How do I cast a double to an int? [modified] Pin
Luc Pattyn11-Apr-11 9:14
sitebuilderLuc Pattyn11-Apr-11 9:14 
GeneralRe: How do I cast a double to an int? Pin
AspDotNetDev11-Apr-11 9:21
protectorAspDotNetDev11-Apr-11 9:21 
GeneralRe: How do I cast a double to an int? Pin
Luc Pattyn11-Apr-11 9:27
sitebuilderLuc Pattyn11-Apr-11 9:27 
GeneralRe: How do I cast a double to an int? Pin
David198711-Apr-11 9:45
David198711-Apr-11 9:45 
AnswerRe: How do I cast a double to an int? Pin
Luc Pattyn11-Apr-11 9:55
sitebuilderLuc Pattyn11-Apr-11 9:55 
GeneralRe: How do I cast a double to an int? Pin
David198711-Apr-11 10:04
David198711-Apr-11 10:04 
GeneralRe: How do I cast a double to an int? Pin
Luc Pattyn11-Apr-11 10:25
sitebuilderLuc Pattyn11-Apr-11 10:25 
Yes, it would have been better to put float and real in code-style. I'll fix that.

I use "real numbers" for non-integer numbers (or better yet, numbers not restricted to integer values), and not for "exact numbers". Most programmers do it that way; it may originate in the old days of Fortran, where they had type REAL (there wasn't a FLOAT time then).

And calculus (as well as programming) courses should teach people about number representations, errors, accumulation and propagation of errors, etc. Most programmers understand the square root of two isn't exact inside a computer, yet many have a hard time understanding why one third times three isn't always one.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: How do I cast a double to an int? Pin
charles henington12-Apr-11 2:34
charles henington12-Apr-11 2:34 
Questiondropdown to enum Pin
fififlowertot11-Apr-11 6:04
fififlowertot11-Apr-11 6:04 
AnswerRe: dropdown to enum PinPopular
OriginalGriff11-Apr-11 6:11
mvaOriginalGriff11-Apr-11 6:11 
GeneralRe: dropdown to enum Pin
fififlowertot11-Apr-11 6:35
fififlowertot11-Apr-11 6:35 
GeneralRe: dropdown to enum Pin
musefan11-Apr-11 6:40
musefan11-Apr-11 6:40 
GeneralRe: dropdown to enum Pin
OriginalGriff11-Apr-11 6:48
mvaOriginalGriff11-Apr-11 6:48 
GeneralRe: dropdown to enum Pin
BobJanova11-Apr-11 6:39
BobJanova11-Apr-11 6:39 
GeneralRe: dropdown to enum Pin
OriginalGriff11-Apr-11 6:49
mvaOriginalGriff11-Apr-11 6:49 
GeneralRe: dropdown to enum Pin
fififlowertot11-Apr-11 6:50
fififlowertot11-Apr-11 6:50 
GeneralRe: dropdown to enum Pin
OriginalGriff11-Apr-11 7:03
mvaOriginalGriff11-Apr-11 7:03 
GeneralRe: dropdown to enum Pin
BobJanova11-Apr-11 23:16
BobJanova11-Apr-11 23:16 
AnswerRe: dropdown to enum Pin
Alan N11-Apr-11 6:53
Alan N11-Apr-11 6:53 
QuestionHow to sync Data of 2 c# projects? Pin
akosidandan11-Apr-11 4:04
akosidandan11-Apr-11 4:04 
AnswerRe: How to sync Data of 2 c# projects? Pin
Wayne Gaylard11-Apr-11 4:11
professionalWayne Gaylard11-Apr-11 4:11 
GeneralRe: How to sync Data of 2 c# projects? Pin
akosidandan11-Apr-11 4:28
akosidandan11-Apr-11 4:28 
GeneralRe: How to sync Data of 2 c# projects? Pin
Wayne Gaylard11-Apr-11 4:36
professionalWayne Gaylard11-Apr-11 4:36 
GeneralRe: How to sync Data of 2 c# projects? Pin
akosidandan11-Apr-11 4:41
akosidandan11-Apr-11 4:41 

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.