Edit report at https://pear.php.net/bugs/bug.php?id=19895&edit=1
ID: 19895
Comment by: shehi@imanov.name
Reported By: msc@istanbul.com
Summary: broken digit conversion in lang.tr_TR
Status: Open
Type: Bug
Package: Numbers_Words
Operating System: Centos
Package Version: 0.16.4
PHP Version: 5.4.14
Roadmap Versions:
New Comment:
This has been fixed in Github. Please close.
Previous Comments:
------------------------------------------------------------------------
[2013-04-12 11:51:52] msc1
Description:
------------
600.50 produces "alt? yüz TL elli Kr" but 611.50 produces the
same "alt? yüz TL elli Kr".
Test script:
---------------
<?php
// include class
include("Numbers/Words.php");
// create object
$nw = new Numbers_Words();
// convert to string
echo Numbers_Words::toCurrency(611.50, tr_TR, 'TRY')
?>
Expected result:
----------------
"alt? yüz on bir TL elli Kr"
Actual result:
--------------
"alt? yüz TL elli Kr"
------------------------------------------------------------------------