Click here to Skip to main content
15,900,589 members
Home / Discussions / C#
   

C#

 
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 
I thought the whole point of decimal was to avoid this kind of problem!
I don't want to truncate to 2 number after the dot. I want to show the whole current value without any useless 0 (more user friendly).
Some of them are cents per litre, the user would be confused by calculations results if I remove some non zero digits!

Anyway, I "fixed" it, made a function to remove trailing '0'
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.

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 
Questionaccessing folder from project Pin
jashimu28-Feb-11 4:37
jashimu28-Feb-11 4:37 
AnswerRe: accessing folder from project Pin
OriginalGriff28-Feb-11 5:30
mveOriginalGriff28-Feb-11 5:30 
GeneralRe: accessing folder from project Pin
jashimu28-Feb-11 7:03
jashimu28-Feb-11 7:03 
GeneralRe: accessing folder from project Pin
Tony Richards28-Feb-11 7:51
Tony Richards28-Feb-11 7:51 

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.