Jump to content

Been doing this while learning OpenGL to output to the console. Not sure if it will work in your case but:

printf("%1.3f",value); //#.###

http://www.cplusplus.com/reference/cstdio/printf/

3700x, Asus B450i, 16GB Corsair Vengeance RGB, Gigabyte GTX 970 ITXDan A4-SFX, SX600-G, 120mm AIO.

Link to comment
https://linustechtips.com/topic/240403-approximating-the-number/#findComment-3295717
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×