Click here to Skip to main content
15,909,530 members
Home / Discussions / C#
   

C#

 
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 
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 
Hey, by looking at the database I just got some idea!

while
1m.ToString() => 1

decimal.Parse("1.0000000").ToString() => 1.0000000

how strange....
but thankfully
1m == decimal.Parse("1.0000000") => true



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:

but the conclusion: it's ok to remove the 0!!! Wink | ;-)
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 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 
AnswerRe: my program works very slow Pin
PIEBALDconsult28-Feb-11 13:19
mvePIEBALDconsult28-Feb-11 13:19 
GeneralRe: my program works very slow Pin
Erdinc273-Mar-11 5:09
Erdinc273-Mar-11 5:09 
Questionhow to programing Microsoft Management Console ?? Pin
GREG_DORIANcod28-Feb-11 4:58
professionalGREG_DORIANcod28-Feb-11 4:58 
AnswerRe: how to programing Microsoft Management Console ?? Pin
Eddy Vluggen28-Feb-11 6:02
professionalEddy Vluggen28-Feb-11 6:02 
AnswerRe: how to programing Microsoft Management Console ?? Pin
RaviRanjanKr28-Feb-11 17:09
professionalRaviRanjanKr28-Feb-11 17:09 

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.