converts a number into integer and formats according to the locale defaults.
The method takes values of the following attributes from the locale in use: