Click here to Skip to main content
16,016,192 members
Home / Discussions / C#
   

C#

 
GeneralRe: Lock the cursor type Pin
Kalvin @ Work18-Dec-07 7:50
Kalvin @ Work18-Dec-07 7:50 
GeneralRe: Lock the cursor type Pin
Skippums18-Dec-07 8:02
Skippums18-Dec-07 8:02 
GeneralRe: Lock the cursor type Pin
Kalvin @ Work18-Dec-07 11:10
Kalvin @ Work18-Dec-07 11:10 
QuestionMath.Round..What am I missing? Pin
jayart18-Dec-07 4:40
jayart18-Dec-07 4:40 
AnswerRe: Math.Round..What am I missing? Pin
Stevo Z18-Dec-07 4:47
Stevo Z18-Dec-07 4:47 
AnswerRe: Math.Round..What am I missing? Pin
benjymous18-Dec-07 4:58
benjymous18-Dec-07 4:58 
GeneralRe: Math.Round..What am I missing? Pin
jayart18-Dec-07 5:03
jayart18-Dec-07 5:03 
GeneralRe: Math.Round..What am I missing? Pin
Stevo Z18-Dec-07 5:27
Stevo Z18-Dec-07 5:27 
You are still using float, aren't you ? Smile | :)


what about this:

double dVal = Math.Round((double)fVal, 2);


if you need that value exactly, just use decimal in any calculation you are planing. If you want to display exactly 10.11, use decimal. If you're just wondering why is it different, we explained you why and don't worry about it anymore Smile | :)
zilo

GeneralRe: Math.Round..What am I missing? Pin
jayart18-Dec-07 5:35
jayart18-Dec-07 5:35 
AnswerRe: Math.Round..What am I missing? Pin
led mike18-Dec-07 5:07
led mike18-Dec-07 5:07 
GeneralRe: Math.Round..What am I missing? Pin
jayart18-Dec-07 5:32
jayart18-Dec-07 5:32 
AnswerRe: Math.Round..What am I missing? Pin
dipak.dipak18-Dec-07 5:24
dipak.dipak18-Dec-07 5:24 
GeneralRe: Math.Round..What am I missing? Pin
Luc Pattyn18-Dec-07 5:55
sitebuilderLuc Pattyn18-Dec-07 5:55 
Questionquestion about FrameWork 3.5 Pin
E_Gold18-Dec-07 4:07
E_Gold18-Dec-07 4:07 
GeneralRe: question about FrameWork 3.5 Pin
Colin Angus Mackay18-Dec-07 4:31
Colin Angus Mackay18-Dec-07 4:31 
GeneralRe: question about FrameWork 3.5 Pin
Paul Conrad24-Dec-07 19:52
professionalPaul Conrad24-Dec-07 19:52 
QuestionHttpWebRequest ? Pin
cd_dvd18-Dec-07 3:59
cd_dvd18-Dec-07 3:59 
GeneralRe: HttpWebRequest ? Pin
Vasudevan Deepak Kumar18-Dec-07 4:12
Vasudevan Deepak Kumar18-Dec-07 4:12 
GeneralRe: HttpWebRequest ? Pin
cd_dvd18-Dec-07 4:31
cd_dvd18-Dec-07 4:31 
GeneralRuntime type casting Pin
Skippums18-Dec-07 3:23
Skippums18-Dec-07 3:23 
GeneralRe: Runtime type casting Pin
CKnig18-Dec-07 3:29
CKnig18-Dec-07 3:29 
GeneralRe: Runtime type casting Pin
CKnig18-Dec-07 3:32
CKnig18-Dec-07 3:32 
GeneralRe: Runtime type casting Pin
Skippums18-Dec-07 6:37
Skippums18-Dec-07 6:37 
GeneralRe: Runtime type casting Pin
m@u18-Dec-07 3:35
m@u18-Dec-07 3:35 
GeneralRe: Runtime type casting Pin
Skippums18-Dec-07 5:56
Skippums18-Dec-07 5:56 

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.