I have created an rtf - template in BI Publisher .  When I export to excel,  the field type : number : formatted as : 0.00 will display as : 1467.3899999999999  and not as 1467.39.  This is not always the case.  

<?sum(current-group()/fld_SF_MONETARY_AMOUNT)?>  This is what it looks like in the word template.  I would like to wrap it with this : <?format-number:fieldname;'999G999D99'?>.

I have tried :        <?sum(current-group()/format-number:fld_SF_MONETARY_AMOUNT;'999G999D99'))?>   Hoping that when this exports the number will not default with the long decimal portion.

error I get : [020218_111132159][] [Line 205.210] Incorrect XPath: sum(current-group()/format-number:fld_SF_MONETARY_AMOUNT;'999G999D99'))

Any help would be greatly appreciated,

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
Try this:
<?format-number(sum(current-group()/fld_SF_MONETARY_AMOUNT), '###,###.00'?>

I got it from:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BrockAuthor Commented:
Okay - after I added a bracket to the right it was happy!  - You made my day there Slightvw.  Lucy :-)
slightwv (䄆 Netminder) Commented:
Glad to help and sorry for the missing parans.  Copy/paste errors...  ;)
BrockAuthor Commented:
No problem, Slightwv.  Keeps me on my toes.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.