Eonums

Eonums is a simple module providing conversion between normal integer numbers and the corresponding textual expression in the Esperano language. It was mainly developped in order to explore the regularity of Esperanto expressions for big integer numbers.

Names for 10**k (k = 6, 9, 12, ...) like "miliono" (10**6) or "miliardo" (10**9) are chosen from the so-called "Longa Skalo" as described on this page about big numbers (in Esperanto).

The integer numbers eonums can convert to or from such Esperanto expressions can be arbitrarily large, but are limited in practice by the largest number for which there is a name in Esperanto (on the "Longa Skalo")", which is, on the previous page, 10**63 (dekiliardo). Hence, the largest integer you can handle with this module is 10**66 - 1. (This module makes no attempt to extend the Esperanto naming rules by introducing names like "undekiliono", "undekiliardo", "dudekiliono" etc.)

This module can be fully translated automatically to Python 3.0 using its migration tool named 2to3.

Features

  • convert Python integers to Esperanto integer strings (Unicode)
  • convert Esperanto integer strings (Unicode) to Python integers
  • validate Esperanto integer strings (Unicode)
  • handle integers from 0 to 10**66 - 1
  • provide conversion functions and command-line scripts
  • provide a Unittest test suite
  • can be automatically migrated to Python 3.0 using 2to3
  • Last updated 3 Apr, 2009


    User level: Intermediate

    User Rating:

    Homepage

    License(s) :

    GPLv3

    Rate it!

     

    About

    Leadership

    Versions

    0.9.0

    User Community and Support

    General Resources

    Development

    Developer Resources
     

    Please send comments on these web pages to bug-directory@fsf.org, send other questions to info@fsf.org.

    Copyright © 2000 - 2009 Free Software Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA

    The copyright licensing notice below applies to this text. Any software described in this text has its own copyright notice and license, which can usually be found in the distribution itself.

    Permission is granted to copy, distribute, and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.