Am I stupid or I cant multiply double here?

Guys whats going on here?

image

1 Like

Hi @hurmet.noka,

Try writing CDbl(CurrentRow.Item("Target")

1 Like

Hey @hurmet.noka

Try this once please.

CInt(CurrentRow.Item("Target"))*5

Thanks
#nK

2 Likes

Thanks a lot Nithin
Appreciate it

1 Like

Cool @hurmet.noka :slight_smile: :+1:

1 Like

Now I have a problem: when I convert to CINT i lose my decimal values, I need them:
When I try to multiply Cint with DOuble doesnt work, so annoying

image

1 Like

I just converted the double to int and then divide by 100.

1 Like

@hurmet.noka , Please do note that we would use CDbl() instead of CInt() for all Numeric Operations, since the Resultant Maybe a Double value.

As you mentioned, we would lose actual values if used CInt(). When we do not know the Resultant value, we convert it to a larger storage Data type, and then if needed we convert it to the lower Data types.

1 Like

Thank You, Appreciate it

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.