Format number function

Format number function 1.1

Format number function 1.1 Download Summary

  • Language: Python
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • License: Other Free / Open Source License - Python License
  • Databases: N/A
  • Downloads: 400
  • Released: Jun 6, 2007

Format number function 1.1 Description

For many languages it is possible to use the locale module to format numbers. But there are at least three languages for which the locale.localeconv()['thousands_sep'] is empty: brazilian portuguese - 'pt_br', portuguese - 'pt' and spanish - 'es'.

The first function, format_positive_integer() will return the passed integer number as a string with the thousands group separator added.

The second function, format_number() much more generic, will accept any number, integer or float, positive or negative, and return a string with the thousands group separator and the desired precision.

Format number function Bookmark

Hyperlink code:
Hyperlink for Forum code:

Format number function 1.1 Script Download Notice

Top 4 Download periodically updates information of Format number function 1.1 script from the developer, but some information may be slightly out-of-date.

Our script download links are directly from our mirrors or publisher's website. Format number function 1.1 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!

Number Format function

This function takes a number (integer or float) and returns a string with ... the decimal portion rounded or padded to given number of decimal places. ...
Python

Format warnings for Visual Studio

... warnings framework, and installs a custom warning message formatter that generates messages understandable by Visual Studio . ...
Python

More accurate sum

Built-in "sum" function, as well as add.reduce functions in Numeric/numarray introduce a large error when summing large arrays of like elements. This script contains a function that makes sums with error less than 1e-15. It doesn't use any additional memory (although it ...
Python

Pipe convenience function for doing pipes

This script allows that arbitrary number of commands to be strung together with each one feeding into the next ones input. ...
Python

Debug statements include function name

... messages and standard messages throughout a program. The function name and line number will be added to each debug and error message before it is printed out. In addition, each of these messages can be passed to ...
Python