1--TEST-- 2numfmt_format() with type conversion 3--SKIPIF-- 4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?> 5--FILE-- 6<?php 7 8function ut_main() 9{ 10 $fmt = ut_nfmt_create( 'en_US', NumberFormatter::DECIMAL ); 11 $number = 1234567.891234567890000; 12 13 $str_res = ut_nfmt_format ($fmt, $number, NumberFormatter::TYPE_INT32)."\n"; 14 return $str_res; 15} 16 17include_once( 'ut_common.inc' ); 18 19// Run the test 20ut_run(); 21 22?> 23--EXPECT-- 241,234,567 25