Jump to content

how can I round to the second decimal place in expression?


Recommended Posts

I want to get number rounding to the second decimal place. like this -1.2345 -> -1.23

i was do that in Houdini 16.0 :

5b2b5549a2281_Screenshotfrom2018-06-2116-32-38.png.869c560b45fac1e6bb137dc8c7b9548d.png

 

But I cant do that in Houdini 16.5

how can I?

 

sorry, I did not write that I used it Font node.

i'd like to use this on Font node.

 

roundDec_example.hipnc

Edited by daydreamier
add information
Link to comment
Share on other sites

here it is...

look in file fund_decimals, font5 node...

to cut to the chase:

parm : `int(ch("../../dopnet1/gravity1/forcey"))`.`abs(rint((ch("../../dopnet1/gravity1/forcey")%int(ch("../../dopnet1/gravity1/forcey")))*100))`

Edited by Noobini
  • Like 1
Link to comment
Share on other sites

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.   Paste as plain text instead

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