Jump to content

gwinPrintg not truncates floats


Artemla

Recommended Posts

Hello. I tried to use gwinPrintg() with format "%.2f" to display float value with 2 digits after point. But float value displays with 5 digits after point, no matter what precision is set in format. I found that precision value in function vfnprintg(), which is used to parse format, is a constant equal to 100000. Changing this constant to 100 gives me precision equal to 2 digits after point. Is it a bug? Or I'm doing something wrong? Thanks.

Link to comment
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
×
×
  • Create New...