Number Helper
=============

The number helper provides functions to format:
 - currency
 - decimal
 - scientific
 - duration
 - spellout
 - percent
 - ordinal


Twig usage
----------

By default, if the second argument is not set then the current locale value is
retrieved by using the request instance.


.. code-block:: jinja

    {{ 10.49|number_format_currency('EUR') }} {# => 10,49 € #}
    {{ 10.15459|number_format_decimal }} {# => 10,155 #Installation
============

This bundle requires the ``php-intl`` extension.

To begin, add the dependent bundles::

    php composer.phar require sonata-project/intl-bundle

Next, be sure to enable the bundles in your application kernel:

.. code-block:: php

  <?php
  // app/AppKernel.php
  public function registerBundles()
  {
      return array(
          // ...
          new Sonata\IntlBundle\SonataIntlBundle(),
          // ...
      );
  }

