1--TEST-- 2Bug #53735 NumberFormatter returns NaN when converting float point 3--EXTENSIONS-- 4intl 5--FILE-- 6<?php 7 8$fmt = numfmt_create("da_DK", \NumberFormatter::CURRENCY); 9 10var_dump(numfmt_format($fmt, 5.5)); 11setlocale(LC_ALL, "da_DK.UTF-8"); 12 13var_dump(numfmt_format($fmt, 5.5)); 14 15 16$fmt = new \NumberFormatter("de_DE", \NumberFormatter::DECIMAL); 17var_dump($fmt->format(23.25)); 18 19$f = new NumberFormatter('hu_HU', NumberFormatter::PERCENT, '#,##0%'); 20var_dump($f->format(0.26)); 21 22?> 23--EXPECTF-- 24string(%d) "5,50 kr%A" 25string(%d) "5,50 kr%A" 26string(5) "23,25" 27string(3) "26%" 28