Skip to content
Convert Persian numbers to English numbers and vice versa.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
Gemfile
MIT-LICENSE
README.rdoc
nums2fa.gemspec

README.rdoc

Nums2fa

nums2fa is simple gem to convert English numbers and Persian numbers together.

install

  • put nums2fa in Gemfile

    gem 'nums2fa'
  • run bunle install

    bundle install

Usages

  • Convert English numbers to Persian numbers

    "1368-11-09".nums2fa   # => '۱۳۶۸-۱۱-۰۹'
  • Convert Persian numbers to English numbers

    "۱۳۶۸-۱۱-۰۹".nums2en    # => "1368-11-09"
You can’t perform that action at this time.