Xpresso Question -Displaying 4 Decimal Places
by Tony Barone on Feb 15, 2016 at 5:38:00 pm
I’m trying to put together a setup in XPresso to create a text output with a string of numbers controlled by a float slider. Seems easy enough, except I need the numbers to extend 4 decimal places. Its for a readout display to indicate degree angle, so the display should go from 0.0000º to 360.0000º.
In the User Data, I can only set the step size to 3 decimal places and I need to go to 4.
Re: Xpresso Question -Displaying 4 Decimal Places by Tony Barone on Feb 15, 2016 at 9:43:17 pm
Found an answer to my question:
There is a System Preset node called Set Decimals, in the String session.
Just feed it with the number in the Value port and the number of decimal places in the Following port.
The result is a String with the decimal places clamped.
If you set the number of decimal places to 0, it will round to the nearest integer.