Click here to Skip to main content
15,902,445 members
Home / Discussions / C#
   

C#

 
GeneralRe: Configuration files Pin
Dave Kreskowiak23-Jan-07 12:32
mveDave Kreskowiak23-Jan-07 12:32 
QuestionSoapExtensionAttribute at the client proxy side Pin
Walter Dias22-Jan-07 8:55
professionalWalter Dias22-Jan-07 8:55 
Questionhide a file Pin
nima_dir22-Jan-07 7:24
nima_dir22-Jan-07 7:24 
AnswerRe: hide a file Pin
aamironline24-Jan-07 15:33
aamironline24-Jan-07 15:33 
QuestionDecimal roundoff problem Pin
Rick van Woudenberg22-Jan-07 7:15
Rick van Woudenberg22-Jan-07 7:15 
AnswerRe: Decimal roundoff problem Pin
Stefan Troschuetz22-Jan-07 7:24
Stefan Troschuetz22-Jan-07 7:24 
AnswerRe: Decimal roundoff problem Pin
PIEBALDconsult22-Jan-07 7:29
mvePIEBALDconsult22-Jan-07 7:29 
AnswerRe: Decimal roundoff problem (solved) Pin
Rick van Woudenberg22-Jan-07 8:22
Rick van Woudenberg22-Jan-07 8:22 
Gents/ladies

Thank you for you prompt and swift reply. I highly appreciate it.

I don't think the Math class is actually taking decimal as a valid input but only double.
There is no conversion possible between double and decimal due to the well-known round-off problem that comes with this.

I managed to fix it another way :

decimal round = Convert.ToDecimal(abaCnt);
decimal? result = Decimal.Round(round, 2);
txtOffBTWTotaal.Text = result.ToString();


This did the trick.

Kind regards,
GeneralRe: Decimal roundoff problem (solved) Pin
Guffa22-Jan-07 9:51
Guffa22-Jan-07 9:51 
GeneralRe: Decimal roundoff problem (solved) Pin
Dave Kreskowiak22-Jan-07 10:46
mveDave Kreskowiak22-Jan-07 10:46 
GeneralRe: Decimal roundoff problem (solved) Pin
Rick van Woudenberg22-Jan-07 21:34
Rick van Woudenberg22-Jan-07 21:34 
GeneralRe: Decimal roundoff problem (solved) Pin
Stefan Troschuetz22-Jan-07 21:58
Stefan Troschuetz22-Jan-07 21:58 
GeneralRe: Decimal roundoff problem (solved) Pin
Dave Kreskowiak23-Jan-07 2:14
mveDave Kreskowiak23-Jan-07 2:14 
QuestionCAO serialization on Client side [modified] Pin
mdzieg22-Jan-07 7:03
mdzieg22-Jan-07 7:03 
AnswerRe: CAO serialization on Client side Pin
Marc Clifton22-Jan-07 8:06
mvaMarc Clifton22-Jan-07 8:06 
GeneralRe: CAO serialization on Client side Pin
mdzieg22-Jan-07 8:31
mdzieg22-Jan-07 8:31 
AnswerRe: CAO serialization on Client side Pin
mdzieg22-Jan-07 11:51
mdzieg22-Jan-07 11:51 
GeneralRe: CAO serialization on Client side [modified] Pin
mdzieg23-Jan-07 6:32
mdzieg23-Jan-07 6:32 
QuestionProgrammatically sharing a drive Pin
Marc Clifton22-Jan-07 6:52
mvaMarc Clifton22-Jan-07 6:52 
AnswerRe: Programmatically sharing a drive Pin
Rick van Woudenberg22-Jan-07 9:42
Rick van Woudenberg22-Jan-07 9:42 
AnswerRe: Programmatically sharing a drive Pin
Scott Dorman28-Jan-07 6:39
professionalScott Dorman28-Jan-07 6:39 
QuestionUsing LDAP for user authentication Pin
mav.northwind22-Jan-07 6:35
mav.northwind22-Jan-07 6:35 
QuestionData Grid View Setting Current Row Pin
Jawa200622-Jan-07 6:31
Jawa200622-Jan-07 6:31 
AnswerRe: Data Grid View Setting Current Row Pin
Marc Clifton22-Jan-07 6:42
mvaMarc Clifton22-Jan-07 6:42 
Questionc# Pin
Member 321217722-Jan-07 6:13
Member 321217722-Jan-07 6:13 

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.