Coder Social home page Coder Social logo

turkish-number's Introduction

turkish-number

 _              _    _     _                                 _               
| |            | |  (_)   | |                               | |              
| |_ _   _ _ __| | ___ ___| |__ ______ _ __  _   _ _ __ ___ | |__   ___ _ __ 
| __| | | | '__| |/ / / __| '_ \______| '_ \| | | | '_ ` _ \| '_ \ / _ \ '__|
| |_| |_| | |  |   <| \__ \ | | |     | | | | |_| | | | | | | |_) |  __/ |   
 \__|\__,_|_|  |_|\_\_|___/_| |_|     |_| |_|\__,_|_| |_| |_|_.__/ \___|_|  
 

Build Status

turn integers into the Turkish words for Crystal Language

adapted from hynkle/turkish_number Ruby Gems.

it has been reorganized and improved for Crystal.

features

  • turn integers into the Turkish words (including negative numbers)
  • only Int32 data type support (for now)
  • Number range: -2147483648 / 2147483647 (Int32 - Crystal API)

installation

add this to your application's shard.yml:

dependencies:
  turkish-number:
    github: izniburak/turkish-number

Usage

require "turkish-number"

puts 1881.tr_words # bin sekiz yüz seksen bir
puts 1938.tr_words # bin dokuz yüz otuz sekiz

puts 75986346.tr_words # yetmiş beş milyon dokuz yüz seksen altı bin üç yüz kırk altı
puts -102574.tr_words # eksi yüz iki bin beş yüz yetmiş dört

# bla bla bla ...

Contributing

  1. fork it ( https://github.com/izniburak/turkish-number/fork )
  2. create your feature branch (git checkout -b my-new-feature)
  3. commit your changes (git commit -am 'Add some feature')
  4. push to the branch (git push origin my-new-feature)
  5. create a new Pull Request

Contributors

  • izniburak İzni Burak Demirtaş - creator, maintainer

turkish-number's People

Contributors

izniburak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

turkish-number's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.