decimals
Restrict number of decimals when working with float and tcl
Say, you need to animate a number and want one decimal. You link a text node to a floating point slider to get the job done, however, it will output a never-ending string of digits that nobody really cares about. You can format this, however. Have no fear.
1 |
[format "%.1f" [value animator.kgloss]] |