https://github.com/kapildevpal/hindi_numerals
HindiNumerals gem aims to facilitate the conversion of Arabic numbers to their Hindi equivalents, allowing developers to seamlessly work with Hindi numerals in their Ruby applications.
https://github.com/kapildevpal/hindi_numerals
ruby-gem ruby-lib ruby-on-rails rubyprogramming
Last synced: 3 months ago
JSON representation
HindiNumerals gem aims to facilitate the conversion of Arabic numbers to their Hindi equivalents, allowing developers to seamlessly work with Hindi numerals in their Ruby applications.
- Host: GitHub
- URL: https://github.com/kapildevpal/hindi_numerals
- Owner: KapilDevPal
- License: mit
- Created: 2024-05-20T15:35:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-20T16:45:45.000Z (about 1 year ago)
- Last Synced: 2025-01-23T03:17:26.208Z (4 months ago)
- Topics: ruby-gem, ruby-lib, ruby-on-rails, rubyprogramming
- Language: Ruby
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# HindiNumerals
HindiNumerals is a Ruby gem that provides functionality to convert standard numbers to Hindi numerals.
# DescriptionHindi numerals, also known as Indian numerals, are the symbols used to represent numbers in the Hindi language. These numerals are commonly used in the Indian subcontinent and are distinct from the Arabic numerals used in Western countries. HindiNumerals gem aims to facilitate the conversion of Arabic numbers to their Hindi equivalents, allowing developers to seamlessly work with Hindi numerals in their Ruby applications.
**## Features**
Convert Arabic numbers to Hindi numerals.
Support for both integers and floating-point numbers.
Lightweight and easy to use.
Compatible with Ruby versions 2.5 and above.## Installation
Install the gem and add to the application's Gemfile by executing:
$ bundle add hindi_numerals
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install hindi_numerals
## Usage
To convert numbers to Hindi numerals, simply call the convert method provided by the HindiNumerals module:
require 'hindi_numerals'
```ruby
HindiNumerals.convert(123) # => "१२३"
HindiNumerals.convert(4567) # => "४५६७"
HindiNumerals.convert(9876543210) # => "९८७६५४३२१०"
```
## DevelopmentAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
## ContributingBug reports and pull requests are welcome on GitHub at https://github.com/kapildevpal/hindi_numerals. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/kapildevpal/hindi_numerals/blob/master/CODE_OF_CONDUCT.md).
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the HindiNumerals project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/hindi_numerals/blob/master/CODE_OF_CONDUCT.md).