Jump to content

Round the value in the font node


reinforcedcc

Recommended Posts

here's mine, non-coder method...you can adjust decimals on the fly (which I think you can with your scripted method too)

Example float 123.45678

01) int(123.45678) = 123

02) 123.45678%123 = 0.45678

03) 0.45678 * pow(10,n) gets n decimals to become 'integer' part (rint is to round the integer)

04) answer is part01.part03

Fund_decimals.jpg

fund_decimals.hipnc

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