Fix formatting of labels with exponents on Windows

The exponent of numbers formatted with the *printf* family of functions
has 3 digits on Windows but only 2 on all other systems. Fixed
this with Win32-specific code.

Change-Id: I00afd0a5926bc7bf4088faf5e54a5559d27701ca
Merge topic '14696_min_max_labels' into next

2fb777a5 Fix formatting of labels with exponents on Windows