Click here to Skip to main content
15,508,473 members
Home / Discussions / C#
   

C#

 
QuestionC# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
ayandelhi27-Jul-10 9:37
ayandelhi27-Jul-10 9:37 
AnswerRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
Yusuf27-Jul-10 10:21
Yusuf27-Jul-10 10:21 
GeneralRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
riced27-Jul-10 12:06
riced27-Jul-10 12:06 
GeneralRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
ayandelhi27-Jul-10 19:05
ayandelhi27-Jul-10 19:05 
AnswerRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
Chris Trelawny-Ross27-Jul-10 13:55
Chris Trelawny-Ross27-Jul-10 13:55 
GeneralRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
Kim Togo28-Jul-10 2:35
professionalKim Togo28-Jul-10 2:35 
AnswerRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
aj.esler28-Jul-10 2:28
aj.esler28-Jul-10 2:28 
QuestionHow come I get a rounded number when I multiply doubles?? [modified] Pin
roman_s27-Jul-10 6:52
roman_s27-Jul-10 6:52 
How come I get a rounded number when I multiply and assign value to a double??

dbRecipeTotal = (RI.Quantity / dbRecipeTotalQuantity) * (InvItem.Price / 100);

 double dbRecipeTotal = 0.0;
RI.Quantity is = 28.88887
dbRecipeTotalQuantity  is =  28.88887
InvItem.Price is = 2425


I get dbRecipeTotal = 24.0 in quickview

it should be 24.25

Any help is appreaciated

modified on Wednesday, July 28, 2010 9:44 AM

AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
harold aptroot27-Jul-10 7:03
harold aptroot27-Jul-10 7:03 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
Luc Pattyn27-Jul-10 7:06
sitebuilderLuc Pattyn27-Jul-10 7:06 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
Richard MacCutchan27-Jul-10 7:10
mveRichard MacCutchan27-Jul-10 7:10 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
T M Gray27-Jul-10 10:01
T M Gray27-Jul-10 10:01 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
William Winner27-Jul-10 10:24
William Winner27-Jul-10 10:24 
GeneralRe: How come I get a rounded number when I multiply doubles?? Pin
T M Gray27-Jul-10 11:12
T M Gray27-Jul-10 11:12 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
Theraot28-Jul-10 5:15
Theraot28-Jul-10 5:15 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
pinskerr28-Jul-10 2:10
pinskerr28-Jul-10 2:10 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
roman_s28-Jul-10 4:43
roman_s28-Jul-10 4:43 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
ely_bob28-Jul-10 4:43
professionalely_bob28-Jul-10 4:43 
GeneralRe: How come I get a rounded number when I multiply doubles?? Pin
Charvak Karpe28-Jul-10 5:12
Charvak Karpe28-Jul-10 5:12 
GeneralRe: How come I get a rounded number when I multiply doubles?? Pin
ely_bob28-Jul-10 5:32
professionalely_bob28-Jul-10 5:32 
GeneralRe: How come I get a rounded number when I multiply doubles?? Pin
Member 315345731-Jul-10 19:13
Member 315345731-Jul-10 19:13 
AnswerRe: How come I get a rounded number when I multiply doubles?? Pin
Kenneth Kasajian28-Jul-10 9:29
Kenneth Kasajian28-Jul-10 9:29 
GeneralRe: How come I get a rounded number when I multiply doubles?? Pin
PaulLinton28-Jul-10 15:15
PaulLinton28-Jul-10 15:15 
GeneralRe: How come I get a rounded number when I multiply doubles?? Pin
Kenneth Kasajian28-Jul-10 15:42
Kenneth Kasajian28-Jul-10 15:42 
GeneralRe: How come I get a rounded number when I multiply doubles?? Pin
Mitch Hughes29-Jul-10 12:04
professionalMitch Hughes29-Jul-10 12:04 

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.