Separate units, tens, hundreds

Hi, need to separate units, tens, hundreds.
What nodes should I use?

Original # modulo 10 will give you units position. Divide original # by 10 and modulo 10 to get tens position. Repeat for as many positions as needed.

thanks @gweimer, now I have another problem :slightly_smiling_face: , how do I eliminate decimals or in another case how can I use only decimals?

Edit: I only want to show 1 digit, and I can not find a way to select it, for example first 2 then 5 and then 6

digit

You can use the modulo node as I mentioned before, or you can use the floor node to drop the decimal part of the number (assuming it is a positive number).

Replacing the format nodes in your patch above with modulo nodes (2nd pin set to “10”) should give you what you want. Modulo node says it rounds toward zero, so floor node should not be needed.

2 Likes

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