Jump to content

Mathematically round with node


Recommended Posts

Hello Pat Stanford

 

22 hours ago, Pat Stanford said:

round

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.

 

 

1483907568_Bildschirmfoto2022-08-16um20_20_33.thumb.png.f23468367125d6ccb5a8648427923ce4.png

 

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

 

I miss:

1.8=1.0
1.3=2

 

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?

 

Abrunden.vwx

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'

 

318757676_ScreenShot2022-08-16at3_35_58PM.jpg.ab9ec9aed389fb3946b54af10ecd910b.jpg

  • 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.

Guest
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...