Andrew Kant Posted September 23, 2017 Share Posted September 23, 2017 Added attribute visualizer. How to round a number so that only two characters are displayed after the comma? It was so 12.3256677. It is necessary to become so 12.33 Quote Link to comment Share on other sites More sharing options...
acey195 Posted September 24, 2017 Share Posted September 24, 2017 not entirely sure if it is the only way, but I think you'll have to multiply the value by 100, round it to the nearest integer and multiply it by 0.01 afterwards. when printing the value in vex using printf() you can use "%d" instead of "%f" for less or more numbers after the decimal point. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.