Separate a number like 0.23456

Good morning, I have a question. How can I separate a number like 0.23456? I want to separate the integer part from the decimal part and use only the integer part in a program. I'm trying, but nothing is working for me.

Use the split block from the text drawer and split at .
This will give you a list with 2 items, the integer and decimal part

Taifun

Multiply by 100000 :wink:

Use the split block from the text drawer and split at .
This will give you a list with 2 items, the integer and decimal part

could you show the block to use

http://ai2.appinventor.mit.edu/reference/blocks/text.html#split

Taifun

image

Thank you for the response; it was helpful.

image