How do I format a number in a Crystal formula field

Posted on 2009-12-30
Last Modified: 2012-05-08
How do I format a number in a Crystal formula field?  The formula I have entered in the field is:
formula = {PurchaseOrderLines.UPMLWIDTH} &  "''W x " & {PurchaseOrderLines.UPMLLENGTH} & "'L"

I want to format the field purchaseorderlines.upmlwidth and purchaseorderline.upmllength to show 3 decimals places - (example:  2.253).  Currently, only 2 decimal places are showing and it is rounding up/down.  I am not able to format this field like a normal numeric field in Crystal.  On numeric fields, I normally choose format field and choose the number tab and make my selection.  In this case, the number tab does not show.  

Question by:aprnka
    LVL 14

    Accepted Solution


    this converts the number to text, and out to 3 decimal places
    LVL 100

    Expert Comment

    Looks good.  If the numbers can be larger than 1000 then you may want to also specify the thousand separator.

    No thousand separator


    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Suggested Solutions

    I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
    Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now