Artemla Posted November 30, 2018 Report Posted November 30, 2018 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.
Joel Bodenmann Posted December 7, 2018 Report Posted December 7, 2018 Hello and welcome to the µGFX community! I'd have to check the code to be sure but if I remember correctly the vfnprintg() implementation doesn't support leading zeros at the moment. If that's the case we'd be more than happy if you decide to add support for that.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now