Fix Bug 1001886: Added method to localize number. Used globals, felt dir...

...ty but it should be fast.