$options['locale'
] =
(string) $options['locale'
];
// Get correct signs for this locale
$symbols = Zend_Locale_Data::
getList($options['locale'
], 'symbols'
);
$oenc = self::
_getEncoding();
self::
_setEncoding('UTF-8'
);
// Get format
$format =
$options['number_format'
];
if ($format === null
) { $format = Zend_Locale_Data::
getContent($options['locale'
], 'decimalnumber'
);
$format = self::
_seperateFormat($format,
$value,
$options['precision'
]);
if ($options['precision'
] !== null
) { $value = Zend_Locale_Math::
normalize(Zend_Locale_Math::
round($value,
$options['precision'
]));
} } else { // seperate negative format pattern when available
$format = self::
_seperateFormat($format,
$value,
$options['precision'
]);
if (strpos($format, '.'
)) { if (is_numeric($options['precision'
])) { $value = Zend_Locale_Math::
round($value,
$options['precision'
]);
} else {