Git Product home page Git Product logo

roman_numerals_2021_12_17's Introduction

Learning exercise, writing a code kata to convert numbers to roman numerals. Find a detailed description of the kata at: https://codingdojo.org/kata/RomanNumerals/

The Romans wrote numbers using letters : I, V, X, L, C, D, M. (notice these letters have lots of straight lines and are hence easy to hack into stone tablets) Part I

The Kata says you should write a function to convert from normal numbers to Roman Numerals: eg

 1 --> I
 3 --> III
 4 --> IV
 5 --> V
 6 --> VI
 7 --> VII
 8 --> VIII
 9 --> IX
 10 --> X
 30 --> XXX
 40 --> XL
 50 --> L
 100 --> C
 300 --> CCC
 400 --> CD
 500 --> D
 900 --> CM
 1000 --> M
 1300 --> MCCC
 1500 --> MD
 1832 --> MDCCCXXXII
etc.

For a full description of how it works, take a look at this useful reference website.

There is no need to be able to convert numbers larger than about 3000. (The Romans themselves didn’t tend to go any higher.)

roman_numerals_2021_12_17's People

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.