Hallo,

wenn ich eine Variable vom Typ decimal habe
und z.B.

myDecimal * 1.25 

aufrufe, erhalte ich die Fehlermeldung:

Cannot apply operator '*' to operands of type decimal and 
double.

Konvertiere ich jedoch myDecimal nach double

double myDouble= (double)myDecimal;

kann ich per

myDouble *= 1.25;

eine Multiplikation durchführen.

Was habe ich da nicht verstanden?

Gruss

Alex


_______________________________________________
CSharp.net Mailingliste, Postings senden an:
CSharp.net@glengamoi.com
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/csharp.net

Antwort per Email an