Hi, I have a text value wich show the slope in 3D of a line, I can get the result that I want, but I would like the value of this text to be rounded, how can I do this? you can see bellow how I did this:
Anybody have a tips on this? maybe it's not the good way to do this.
I'm using openroads designer 2021 r1
Regards
Hello Jeremie,
You can use the Round function in the Operation node. So i would suggest to have a Value node and then an operation node to get the rounded values. Add the input of the Text value in the value node. After getting the value add an Operation node and hook the value node's input. and in the operation node add Round. there use the precision as desired. Look at the attached image. I hope this helps you. Regards,Alifur
Answer Verified By: JeremieDL
Great perfect! thanks Alifur!
If you would like to do this without using an additional node, you can use the Round function within your text node; simply specify your input value and then the precision (number of decimal places required) as an int: