How to convert double to long

Hey, I have to convert very large double number to long. could anyone help tel me how to convert double to long? many thanks.

Hi,
Can you post a picture of what you have tried or what you are trying to achieve?

You may need to add a little more information to this request or give some context, so that others in the forum can offer the best advice.

Thanks for replying. the Y numbers are out off the range of integer.I think I have to use long.

@shan.hong I’m not sure what you are trying to do.

does this help?

Are there any errors before this point?
The code blocks look OK to me.

Thanks for relying me. It is close. My case is an array, how it works for array? Many thanks.

OUT=[int(i) for i in IN[0]]

Thanks Ewan, nearly there. only second part in the schedule, that will be great if the first part in the schedule.

doesn’t work.

Apologies try this:
OUT=[int(i) for i in IN[0]]

Have another look at the picture I uploaded.
If this is the way you are going to go, then you will need to Transpose the values then use the correct list
(i.e. the first one)

Looks like it can’t get 1st number in the 1 list.

It still doesn’t work.
image

What values are reporting in the List.Transpose node?

The values from the String.Split node will need to be at the top level of the list for List.Transpose to work as I have shown.

image

You may need to look at using the list levels function.
http://dynamobim.org/introducing-listlevel-working-with-lists-made-easier/

drop your files please

I am a new user, can’t drop a file to here.
image

send a link Please

Here you are. Thanks for help.
https://www.dropbox.com/preview/Point/point%20locator_SH.dyn?role=personal

Thanks Guys, Got it.It’s really appreciated.