Formatting float in each platform in libGDX

If you found a problem with formatting float in GWT I am presenting a solution similar to described here in official libGDX wiki page (based on interfacing with platform specific code). As you have probably noticed String.format() is not supported by GWT. We need to use alternative class NumberFormat from gwt client library, which is a simple replacement.