DataType mismatch issue

Hi Team,
Please check below image and help me identify the issue.


Declared two arguments ab ,bc and assigned with double values 1.23 & 3.25. I want their multiplication value and store to new argument cd. It gives me error at ‘WriteLine’ activity that "Option strict on disallows implicit conversions from String to Double’. Please help to how to correct the error and perform operations on these values.

Hi.

cd arrggument is of diuble data type. Kindly convert the same to String using ConvertTo function before writing value in write line

Regards,
Amit Anand

How to use the function “Convert To”? is it using Intellisense feature or using other activity ? Please elaborate.

Hi,

Yes. Also, google about data type conversion in VB .net to learn more. Works in similar way as in other programming language

Regards,
Amit

Thanks for the reply.
Now I got a new Decimal value as 1.225 after multiplication, which needs to be rounded off to 2 digits before I convert to string for writeline activity. but there is no option of round off in Intellisense feature, could you please suggest how can we do it ?

Hi,

You can use round function. As i said all function in Vb .net are supported.

Regards,
Amit Anand