Recommend this page to a friend! |
Download .zip |
Info | View files (7) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2010-12-19 (5 years ago) | Not yet rated by the users | Total: 237 | All time: 7,505 This week: 1,099 |
Version | License | PHP version | Categories | |||
dec2roman_num_conv 2.0 | GNU General Publi... | 5 | PHP 5, Conversion, Math |
Description | Author | |||||||||||||
Dec2RomanNumConverter provides API for converting numbers between decimal and roman representations and vice-versa. |
|
Dec2RomanNumConverter is a PHP class which enables conversion of decimal numbers to Roman numerals and vice-versa. Maximal decimal number which can be handled by Dec2RomanNumConverter::dec2roman() method is 3999 as larger numbers require a bar above the base numeral. AUTHOR ------ Nikola Posa <posa.nikola@gmail.com> FEATURES -------- - Conversion of decimal numbers to Roman numerals and vice-versa INSTALLATION ------------ Dec2RomanNumConverter source code is placed in the "libs" dir, so you should simply copy its content to some of your project's folder, for example, in folder where you keep your libraries. Path to that folder should be in the include_path. USAGE ----- echo Dec2RomanNumConverter::dec2roman(1987); //MCMLXXXVII echo Dec2RomanNumConverter::roman2dec('DCCXXIX'); //729 SYSTEM REQUIREMENTS ------------------- PHP 5 or later. LICENSE ------- The files in this archive are released under the GNU General Public License. You can find a copy of this license in LICENSE.txt. |
Files |
File | Role | Description | ||
---|---|---|---|---|
libs (1 file, 1 directory) | ||||
tests (2 files) | ||||
demo.php | Example | Demo script. | ||
LICENSE.txt | Lic. | License | ||
README.txt | Doc. | Readme |
Files | / | libs |
File | Role | Description | ||
---|---|---|---|---|
Dec2RomanNumConverter (1 file) | ||||
Dec2RomanNumConverter.php | Class | Class for converting decimal numbers to Roman numberals and vice-versa. |
Files | / | libs | / | Dec2RomanNumConverter |
File | Role | Description |
---|---|---|
Exception.php | Class | Dec2RomanNumConverter exception class. |
Files | / | tests |
File | Role | Description |
---|---|---|
Dec2RomanNumConverterTest.php | Test | Dec2RomanNumConverter tests. |
TestHelper.php | Aux. | Setting up testing environment. |
dec2roman_num_conv-2010-12-19.zip 18KB | |
dec2roman_num_conv-2010-12-19.tar.gz 15KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.