0.0
No release in over a year
This gem provides functionality to convert standard Arabic numbers to Hindi numerals.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0

Runtime

>= 6.0.0
 Project Readme

HindiNumerals

HindiNumerals is a Ruby gem that provides functionality to convert standard numbers to Hindi numerals.

Description

Hindi 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'

HindiNumerals.convert(123)        # => "१२३"
HindiNumerals.convert(4567)       # => "४५६७"
HindiNumerals.convert(9876543210) # => "९८७६५४३२१०"

Development

After 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.

Contributing

Bug 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.

License

The gem is available as open source under the terms of the MIT License.

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.