Une bibliothèque pour convertir les nombres en lettres en malagasy.
Project description
Isa Malagasy
Isa Malagasy est une bibliothèque python qui permet de convertir des nombres en lettres en malagasy. Elle supporte les entiers et les nombres décimaux, avec ou sans unité.
Copyright © 2025 Day Lamiy
Installation
Pour installer la bibliothèque, exécutez cette commande :
pip install isa-malagasy
Utilisation
Exemple de base
from isa_malagasy import num2wordsmalagasy
print(num2wordsmalagasy(83))
# Affiche "telo amby valopolo"
print(num2wordsmalagasy(111.19))
# Affiche "iraika ambin'ny folo amby zato faingo sivy ambin'ny folo"
print(num2wordsmalagasy(499.998))
# Affiche "dimampolo faingo aotra"
Exemple avec une unité
from isa_malagasy import num2wordsmalagasy
print(num2wordsmalagasy(2500, "Ariary"))
# Affiche "dimanjato sy roa arivo Ariary"
print(num2wordsmalagasy(900.60, "Ar."))
# Affiche "sivinjato faingo enimpolo Ar."
print(num2wordsmalagasy(150.495, "MGA"))
# Affiche "dimampolo amby zato faingo dimampolo MGA"
Syntaxe
Résultat = num2wordsmalagasy(Nombre à transformer [, Unité])
-
Résultat: <str>Nombre exprimé en lettres.
-
Nombre à transformer: <int, float>Nombre à transformer en chaîne de caractères.
Le nombre à exprimer en lettres a les caractéristiques suivantes :
18 chiffres significatifs : 12 chiffres maximum pour la partie entière, 6 chiffres maximum pour la partie décimale.
-
Unité: <str optionnelle>Unité à utiliser dans le résultat : ariary, fmg, MGA, euro, ...
Limites
La bibliothèque supporte les nombres jusqu'à 999 999 999 999. Au-delà, un message d'erreur sera affiché. Les nombres en chaîne de caracrères ne sont pas pris en charge.
Remarque
La partie décimale est arrondie à 2 chiffres.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file isa-malagasy-1.1.tar.gz.
File metadata
- Download URL: isa-malagasy-1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cebd8fe890c6e7db3096af1c69722e0d6f01ef941e51b53d5625b8be424c715f
|
|
| MD5 |
629469d577bc4e42737e557951f07144
|
|
| BLAKE2b-256 |
5dfa31e20f14651a0abbce61b6cdc1e0655ea35bb31cc5ff9aac9522bec9f5d5
|
File details
Details for the file isa_malagasy-1.1-py3-none-any.whl.
File metadata
- Download URL: isa_malagasy-1.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13d4ca05f07fd853e2283fcddda08ee45ba5fa44255e6752122deaec1618295b
|
|
| MD5 |
9836d8eaae20d6050e81c05904d33a53
|
|
| BLAKE2b-256 |
ada0a8d8ec05ab557d2e98447e8c699151e5e61231c8a484405b6587f84cff22
|