It should automatically recognize the number formatting from Cube Measures.
For e.g. Number to Number and Percent to Percent and Decimal to Decimal.
If you want to use formatting settings from the cube please change parameter useOlapFormatting like this
<param name="useOlapFormatting">true</param>