Data types is Fail to match?

Hola Amigos buenas. I have a question for developers mostly; the “Int64” data type is the same or compatible with the “Double” type? i am not sure but i think not, i think this causes the “List.IndexOf” node to fail when i try to compare them, is there a simple way to transform them to the other data type, or maybe i am missing something, can someone please guide me?

Hello @gilberto.arechigaiba …you could try round your double…

3 Likes

Amigo @sovitek, In deed i was missing something, I’ve tested by my self it works thanks so much, as allways a simple an elegant solution!! :saluting_face:

2 Likes

Hello, here is a possibility

code block:

def mute_double_int(a:int)
{
return a;
};

Cordially
christian.stan

2 Likes

Amigo @christian.stan Thanks for the advice is good to know that; but on the contrary, I analyzed the situation a little more in depth, apparently it is a small bug in the node, when it works with lists at the same level it works, but in several levels it does not work with Int64 type data, maybe I’m wrong I’m not so strong in programming, maybe it is a known bug and it is solved in the latest version!!

Hello, you can also make everything double by multiplying your data by 1.0

Cordially
christian.stan

1 Like

I guess I was drowning in a glass of water; thanks Amigo!! :saluting_face:

1 Like