Skip to main content

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

bdtdecimaltowordconverter-2.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bdtdecimaltowordconverter-2.0.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file bdtdecimaltowordconverter-2.0.3.tar.gz.

File metadata

File hashes

Hashes for bdtdecimaltowordconverter-2.0.3.tar.gz
Algorithm Hash digest
SHA256 68d295d98f8eca919e213834c8af4c03c158d2162e02f6ba7c25afc574a2430d
MD5 1448011754844fa09f020c4048f50cb2
BLAKE2b-256 292ba5754362ba2e4aab815268f2cdbd2a9433e3db1bd089b42c194476f2ddd7

See more details on using hashes here.

File details

Details for the file bdtdecimaltowordconverter-2.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for bdtdecimaltowordconverter-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7fd4e6331ded674ede060517ff7d6ca8d12c57aabf43694957d7a32cca70e0a9
MD5 776228face5729ded6a0c1b97c83809f
BLAKE2b-256 b572c12aa17891adfddd759bd49af068990388b1c5d0d61539d19d744aecfb9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page