Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
QuestionWin32_PhysicalMedia Problem Pin
Aisha sharma28-Feb-11 18:04
Aisha sharma28-Feb-11 18:04 
AnswerRe: Win32_PhysicalMedia Problem Pin
RobCroll28-Feb-11 21:21
RobCroll28-Feb-11 21:21 
QuestionWeb Serfer Monitor Pin
Anubhava Dimri28-Feb-11 17:33
Anubhava Dimri28-Feb-11 17:33 
AnswerRe: Web Serfer Monitor Pin
Richard MacCutchan28-Feb-11 23:17
mveRichard MacCutchan28-Feb-11 23:17 
GeneralRe: Web Serfer Monitor Pin
Anubhava Dimri28-Feb-11 23:23
Anubhava Dimri28-Feb-11 23:23 
GeneralRe: Web Serfer Monitor Pin
Richard MacCutchan28-Feb-11 23:51
mveRichard MacCutchan28-Feb-11 23:51 
GeneralRe: Web Serfer Monitor Pin
Dave Kreskowiak1-Mar-11 9:02
mveDave Kreskowiak1-Mar-11 9:02 
Questiondecimal.ToString() mystery [SOLVED] Pin
Super Lloyd28-Feb-11 11:20
Super Lloyd28-Feb-11 11:20 
I have tested ToString() on a few decimal and it looks nice with no trailing zero, i.e.
1m.ToString() => 1
1.1m.ToString() => 1.1
1.0001m.ToString() => 1.0001

Yet, in my app, I have some decimal.ToString() looking like 5.00000000000000 (many useless trailing 0) which crops up all over the place!

Any idea as to why!?! Sigh | :sigh:

[Edit]
mmm.... in fact I was wrong! decimal store the number of decimal value it has been created with a display them!

i.e.
1.0m.ToString() => 1.0
(1.0m * 1.0m).ToString() => 1.00

User error, oops... Roll eyes | :rolleyes:
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.

AnswerRe: decimal.ToString() mystery Pin
Luc Pattyn28-Feb-11 11:38
sitebuilderLuc Pattyn28-Feb-11 11:38 
GeneralRe: decimal.ToString() mystery Pin
Super Lloyd28-Feb-11 11:47
Super Lloyd28-Feb-11 11:47 
AnswerRe: decimal.ToString() mystery Pin
Luc Pattyn28-Feb-11 12:01
sitebuilderLuc Pattyn28-Feb-11 12:01 
GeneralRe: decimal.ToString() mystery Pin
Super Lloyd28-Feb-11 12:09
Super Lloyd28-Feb-11 12:09 
GeneralRe: decimal.ToString() mystery Pin
Super Lloyd28-Feb-11 12:21
Super Lloyd28-Feb-11 12:21 
AnswerRe: decimal.ToString() mystery Pin
Luc Pattyn28-Feb-11 12:41
sitebuilderLuc Pattyn28-Feb-11 12:41 
GeneralRe: decimal.ToString() mystery Pin
V.28-Feb-11 20:35
professionalV.28-Feb-11 20:35 
AnswerRe: decimal.ToString() mystery Pin
Eddy Vluggen28-Feb-11 11:42
professionalEddy Vluggen28-Feb-11 11:42 
GeneralRe: decimal.ToString() mystery Pin
Super Lloyd28-Feb-11 11:50
Super Lloyd28-Feb-11 11:50 
GeneralRe: decimal.ToString() mystery Pin
Eddy Vluggen28-Feb-11 20:47
professionalEddy Vluggen28-Feb-11 20:47 
GeneralRe: decimal.ToString() mystery Pin
Super Lloyd28-Feb-11 21:11
Super Lloyd28-Feb-11 21:11 
GeneralRe: decimal.ToString() mystery Pin
Eddy Vluggen28-Feb-11 21:19
professionalEddy Vluggen28-Feb-11 21:19 
AnswerRe: decimal.ToString() mystery [SOLVED] Pin
RobCroll28-Feb-11 16:11
RobCroll28-Feb-11 16:11 
GeneralRe: decimal.ToString() mystery [SOLVED] Pin
Super Lloyd28-Feb-11 16:21
Super Lloyd28-Feb-11 16:21 
Questionmy program works very slow Pin
Erdinc2728-Feb-11 8:04
Erdinc2728-Feb-11 8:04 
AnswerRe: my program works very slow Pin
Luc Pattyn28-Feb-11 8:55
sitebuilderLuc Pattyn28-Feb-11 8:55 
AnswerRe: my program works very slow Pin
RobCroll28-Feb-11 12:16
RobCroll28-Feb-11 12:16 

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.