Hi team,
I have 3 variables
A,B,C
A is of type double
B,C are also type of double.
I have to divide B\C
And then I have to compare the A with the value I get by dividing B/C
If I use A = B \ C
I get an error saying strics disallow from double to long
How to resolve this?
What does this CDbl means?
rlgandu
(Rajyalakshmi Gandu)
4
@Bhagyashree_S
Convert to double dividing means you have to give “/”
vrdabberu
(Varunraj Dabberu)
5
Hi @Bhagyashree_S
You can use this:
CDbl(B/C)
CDbl() is a conversion function that converts an expression to a Double data type.
Regards
vrdabberu
(Varunraj Dabberu)
6
Hi @Bhagyashree_S
Have a look at below example:
I have taken three variable A, B, C which are of datatype System.Double
Used syntax in Assign is:
A= CDbl(B/C)
Hope this will make you understand better,.
Regards
rlgandu
(Rajyalakshmi Gandu)
7
@Bhagyashree_S
If your problem rectifies mark it as solution so the loop closes
After using CDbl .still I am getting same error
Oh ok…I had used \ instead of / .now it’s working fine.
Thank u so much
1 Like
vrdabberu
(Varunraj Dabberu)
10
You’re welcome @Bhagyashree_S
Happy Automation!!
system
(system)
Closed
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.