I have defined three dotnet variables of type system.double.
System.Double.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
How do I multiply these together? if I try and perform the following double1 := double2 * double3; I get the following error when compiling
Type conversion is not possible because one of the operators contains an invalid type. Dotnet * Dotnet
0
Answers
I would suggest you retrieve the values in NAV decimal variables and then, do the math.
mydotnet1:=mydotnet1.dotnet1();
mydotnet2:=mydotnet2.dotnet2();
result1:=mydotnet1.operation1;
result2:=mydotnet2.operation2;
finalres:=result1*result2;
maybe like this?
Try to run this code to understand what is happening:
P.S: you may need to adapt the decimal separator inside Parse('1,5').
But, why are you trying to do this? Why don't you use NAV decimals: System.Double is mapped to NAV Decimal:
https://msdn.microsoft.com/en-us/library/hh165619(v=nav.90).aspx