Click here to Skip to main content
16,010,876 members
Home / Discussions / C#
   

C#

 
GeneralThe "good books" question... Pin
merlin98769-Jul-02 7:54
merlin98769-Jul-02 7:54 
GeneralRe: The "good books" question... Pin
Michael P Butler9-Jul-02 8:13
Michael P Butler9-Jul-02 8:13 
GeneralRe: The "good books" question... Pin
Eric Gunnerson (msft)10-Jul-02 7:42
Eric Gunnerson (msft)10-Jul-02 7:42 
GeneralRe: The "good books" question... Pin
merlin987610-Jul-02 16:54
merlin987610-Jul-02 16:54 
GeneralRe: The "good books" question... Pin
James T. Johnson10-Jul-02 21:03
James T. Johnson10-Jul-02 21:03 
GeneralRe: The "good books" question... Pin
Eric Gunnerson (msft)11-Jul-02 7:09
Eric Gunnerson (msft)11-Jul-02 7:09 
QuestionBUG? Pin
leppie9-Jul-02 4:14
leppie9-Jul-02 4:14 
AnswerRe: BUG? Pin
Eric Gunnerson (msft)10-Jul-02 7:39
Eric Gunnerson (msft)10-Jul-02 7:39 
Arithmetic operations are always defined on similar types:

double + double
decimal + decimal
int + int

In some cases, there will be an implicit conversion that allows something like:

short i = 5;
int j = 55 + i;

to succeed, by automatically converting i to an int.

With double and decimal, there are no such implicit conversions. Decimal carries more significant digits than double, and double has more range, so you can't convert from one to the other without possible data loss.

That's why you're getting the error.
GeneralRe: BUG? Pin
leppie10-Jul-02 20:33
leppie10-Jul-02 20:33 
GeneralLinks to C# sites Pin
leppie8-Jul-02 23:38
leppie8-Jul-02 23:38 
GeneralRe: Links to C# sites Pin
Michael P Butler9-Jul-02 8:20
Michael P Butler9-Jul-02 8:20 
GeneralCreating similar Shell_TrayWnd Pin
8-Jul-02 21:02
suss8-Jul-02 21:02 
GeneralRe: Creating similar Shell_TrayWnd Pin
James T. Johnson15-Jul-02 22:25
James T. Johnson15-Jul-02 22:25 
GeneralInheriting textbox and setting property values Pin
kyledunn8-Jul-02 10:16
kyledunn8-Jul-02 10:16 
GeneralRe: Inheriting textbox and setting property values Pin
Andy Smith8-Jul-02 10:46
Andy Smith8-Jul-02 10:46 
GeneralRe: Inheriting textbox and setting property values Pin
kyledunn9-Jul-02 2:49
kyledunn9-Jul-02 2:49 
GeneralRe: Inheriting textbox and setting property values Pin
Andy Smith9-Jul-02 5:37
Andy Smith9-Jul-02 5:37 
GeneralRe: Inheriting textbox and setting property values Pin
kyledunn9-Jul-02 7:55
kyledunn9-Jul-02 7:55 
QuestionSetWizardMode? How do we create C# Wizards? Pin
Zombies with Coffee, LLC8-Jul-02 9:53
professionalZombies with Coffee, LLC8-Jul-02 9:53 
AnswerRe: SetWizardMode? How do we create C# Wizards? Pin
Rama Krishna Vavilala8-Jul-02 10:57
Rama Krishna Vavilala8-Jul-02 10:57 
GeneralRe: SetWizardMode? How do we create C# Wizards? Pin
Zombies with Coffee, LLC8-Jul-02 11:03
professionalZombies with Coffee, LLC8-Jul-02 11:03 
GeneralRe: SetWizardMode? How do we create C# Wizards? Pin
Rama Krishna Vavilala8-Jul-02 11:20
Rama Krishna Vavilala8-Jul-02 11:20 
GeneralRe: SetWizardMode? How do we create C# Wizards? Pin
Zombies with Coffee, LLC8-Jul-02 11:39
professionalZombies with Coffee, LLC8-Jul-02 11:39 
GeneralPlease Help...Tree Refreshing Problem Pin
cAptHiDDeN8-Jul-02 9:32
cAptHiDDeN8-Jul-02 9:32 
GeneralRe: Please Help...Tree Refreshing Problem Pin
Zombies with Coffee, LLC8-Jul-02 9:57
professionalZombies with Coffee, LLC8-Jul-02 9:57 

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.