bdtdecimaltowordconverter is created for converting decimal to word in both bangla and english in BDT format
Project description
## [BDT Decimal to Word Converter](https://pypi.org/project/bdtdecimaltowordconverter/)
## Prerequisites
* python 3x
* pip3
## Installation
## Create Vrtual Environment
```bash
sudo apt install virtualenv
```
```bash
virtualenv --version
```
```bash
virtualenv -p /usr/bin/python3.6 pyenv
```
## Active Environment
```bash
source pyenv/bin/activate
```
**BEFORE YOU INSTALL:** please ensure the [prerequisites](#prerequisites)
```bash
pip install bdtdecimaltowordconverter
```
## Usage
### import DecimalToWord from bdtdecimaltowordconverter
```bash
from bdtdecimaltowordconverter import DecimalToWord
```
### make object of bdtdecimaltowordconverter
```bash
decimal_to_word = DecimalToWord()
```
### call the convertAmount() function with your value
```bash
decimal_to_word.convertAmount(8.89, False, False, 'bng')
```
### parameters
##### (numericValue, is_ignorable_taka_if_zero, is_ignorable_paisa_if_zero, language)
* 1. number value that need to be converted. can be used interger or decimal
* 2. If you don't want to get zero value of taka, for an example you need to convert 0.23 and you want to skip/ignore zero in the return value then pass True otherwise False. If you pass False ( decimal_to_word.convertAmount(0.23, False, False, 'eng') ) then result will be 'zero taka and twenty three paisa only' and if you pass True ( decimal_to_word.convertAmount(0.23, True, False, 'eng') ) then result will be 'twenty three paisa only'
* 3. same as taka here is the value of paisa.
* 4. output language available languages
'bng' for bangla and 'eng' for english
## Contact with [Author](https://www.fb.com/mahfuzcmt)
Project details
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
Close
Hashes for bdtdecimaltowordconverter-2.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7987832278925d16399974492ec71506ad33f00b7564aadde6bc817cdd2e54bd |
|
MD5 | 338f694872f5a9d04fd5cbded781b362 |
|
BLAKE2b-256 | 690f5cfb5694fbae6e21fcfd0aac1d310e20c8d3e1b719b19d5935fac4a39c0f |
Close
Hashes for bdtdecimaltowordconverter-2.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4f17b09d2dfda517f89cfca69493f71ab7d4a744e3eca8b3a6da50ddc1905cd |
|
MD5 | f23456485f3cff82938b8ce3a87e681e |
|
BLAKE2b-256 | 9f1279cf6788d2526d91546d23d486e9d3077986c922cd7751a36d05166bebfc |