Jump to content

Mathematically round with node

Recommended Posts

Hello Pat Stanford


22 hours ago, Pat Stanford said:


I want to be able to determine how to round.
For example, in the image above, I want to round down to a whole number.





In my opinion, the "round" knot is not suitable for all applications.


I miss:



Especially when I split a route, I need whole numbers to continue working. The problem is that the individual sections must have a minimum or maximum size (smaller than and larger than).


I still don't find my solution really good.


Are there better variants?



Link to comment

Would either the 'ceiling' or 'floor' marionette nodes work for you? One rounds up to the next whole integer, the other rounds down to the next whole integer


ceil = 'Return the ceiling of x, the smallest integer greater than or equal to x'

floor = 'Return the floor of x, the largest integer less than or equal to x'



  • Like 2
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...