Formatting numbers

I have some Flex charts in an app and the various numbers
going past four digits don't have any formatting, how do you insert
this?
I.e. I want it to show "12,000" instead of "12000"
M.

I found an example of a Number formatter here:
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_13.html

Similar Messages

  • Application Express 3.1 + BI-Publisher + problem with formating numbers

    Hello together!
    I use the Oracle BI Publisher Template Builder for Word (10.1.3.4) to generate RTF-Templates. I upload these templates in Oracle Apex (Advanced support-->BI-Publisher/OC4J as print service).
    It works well, but I have a problem with formating numbers.
    In Template Builder I define following number formats, for example: #.##0 for numbers like 1.454.234 and #.##0,00 for numbers like 54,80
    In Template-Builder Preview it looks well.
    But whatever I do, in use with Oracle Apex dots and comma are allready interchances in the printout.
    That means,
    1.454.234 become 1,454,234 in PDF-Report
    54,80 become 54.80 in PDF-Report
    Other than that, the layout is exactly the same like in Template Builder defined.
    What's wrong?
    Do I have to change any country parameter?
    Juliane

    I also had the same problem. I tried with normal formating of 99g99g999d99 instead of ##,##,##0.00 and it has resulted correct way.

  • Format numbers in column chart

    Hi all,
    I want to display formated numbers in tooltip of column chart.
    Instead 60000 display 60,000...
    Is it possible?
    VC7 SP15 Flash runtime.
    Thanks,
    Ola
    Edited by: Ola Agiv on Sep 18, 2008 2:01 PM

    Hi,
    I tried your soln on my System as below.
    1.Input field L1
    2.Expression Field E1 with formula :NSTR(@L1, 'C'),
    3.Exepression Field E2 WIth formula :REPLACE(NSTR(@L1,'C'), '.', ',')
    I Had given Input for L1 as 10000.
    the output of E1,E2 is 10,000  Means output of both formulas returning same output.
    Could you plesae check this once .
    where you testing this
    i am working on SP16.
    Thansk,
    Govindu

  • New to formatting numbers

    The following is an assignment given to me in my intro to Java class.
    The program EmployeeTest calls different methods in Employee in order to print out the pay per individual, total pay, gross pay, and total net pay.
    While I know that the teacher wants me to use java.text.NumberFormat, I am unsure how to proceed. I have been able to format my numbers with the comma, but have no idea how to format the decimals. She wants the third decimal place DROPPEd, not rounded. Any help would be greatly appreciated.
    import java.util.Locale;
    import java.text.NumberFormat;
    import javax.swing.JOptionPane;
    public class EmployeeTest
         //declare variables
         static String results = ""; //used to store results
         static Employee empArray[] = new Employee[7]; //creates and initializes array of 8 employees
         static double totalTax; //used to store value of total taxes paid
         static double totalGrossPay; //used to store total gross pay
         public static void main(String args[])
              //declare hours array
              double hoursrArray[][] = { {12,7,8,8,8.5},
                             {8,10,8.5,8.5,9},
                             {8,7,11,9,7.5},
                             {8.5,6,7,10.5,6},
                             {7.5,8,8,12,10},
                             {9.5,7.5,8,12,10},
                             {5,6,3,2,8} };
              addHours(hoursrArray); //call method addHours
              buildResults();     //call method buildResults
              printResults(); //call method print Results
         //addHours method
         public static void addHours(double hrArray[][])
              double totalPay = 0.0; //initialize total pay to 0
              double hours = 0.0; //initialize hours as a double with value 0
              //for loop to send each row through class Employee
              for (int i = 0; i < hrArray.length; i++)
                        for (int j = 0; j < hrArray.length; j++)
                             hours += hrArray[i][j];
                        empArray[i] = new Employee("Employee" + i, i, hours);
                        hours = 0.0;
                        totalTax += empArray[i].calculateTax(); //add taxes from each run-through
                        totalGrossPay += empArray[i].getTotalPay(); //add pay from each run-through
              //walk through array, add hours worked for each
              //employee, create employee, assign to empArray, and calculate total pay
         //buildResults method
         public static void buildResults()//create method to build results
              NumberFormat nf1 = NumberFormat.getInstance(); //format numbers
              results = "Employee Results\n\n"; //interior title of info box "pay results"
              for (int i = 0; i < empArray.length; i++)
                   results += empArray[i].toString() + "\n"; //add results from empArray/Employee to results string
              results += "Total Gross Pay $" + nf1.format(totalGrossPay) + "\nTotal Total Tax $"
                   + nf1.format(totalTax) + "\nTotal Net Pay $" + nf1.format(totalGrossPay - totalTax);
         //printResults method
         public static void printResults() //create method to print results
              //print results to dialog box
              JOptionPane.showMessageDialog(null, results, "Pay Results", JOptionPane.INFORMATION_MESSAGE);
    public class Employee
         private String name;
         private int id;
         private double hoursWorked;
         private double totalPay;
         private static int numberOfEmployees = 0;
         public Employee()
              setName("");
              setId(0);
              setHoursWorked(0.0);
              setTotalPay(0.0);
              numberOfEmployees++;
         public Employee( String n, int i, double h )
              setName(n);
              setId(i);
              setHoursWorked(h);
              calculateTotalPay(h);
              calculateTax();     
              numberOfEmployees++;
         public String getName()
              return name;
         public int getId()
              return id;
         public double getHoursWorked()
              return hoursWorked;
         public double getTotalPay()
              return totalPay;
         public static int getNumberOfEmployees()
              return numberOfEmployees;
         public void setName(String n)
              name = n;
         public void setId(int i)
              id = i;
         public void setHoursWorked(double h)
              hoursWorked = h;
         public void setTotalPay(double p)
              totalPay = p;
         public String toString()
              //return String.format("Name %s ID %s Hours Worked %.2f Total Pay $%.2f",
                   //name, id, hoursWorked, totalPay );
              return ("Name " + name + " ID " + id + " Hours Worked " + hoursWorked
                   + " Total Pay $" + totalPay);
         public void calculateTotalPay(double r)
              int num = id%2;
              if (num == 0)
                   if (hoursWorked <= 40)
                        totalPay = (hoursWorked * 10.5);
                   else
                        totalPay = (hoursWorked * 10.5) + ((hoursWorked - 40) * 5.25);
              else
                   if (hoursWorked <= 40)
                        totalPay = (hoursWorked * 15.75);
                   else     
                        totalPay = (hoursWorked * 15.75) + ((hoursWorked - 40)* 7.875);
         public Double calculateTax()
              double tax;
              if (totalPay <=500)
                   tax = totalPay * .07;
              else
                   tax = totalPay * .1;
              return tax;

    First you mentioned assignment.Thats good, know we now how much and how we can help. It's annoying with posts which is
    obvious assignments but the author doesn't tell us so.
    Second, you don't use code tags to post code.To get code tags click the code button over the window, this will give you code tags
    at the end of your post. You write the code between the brackets pairs like
    [hoho] static public void main(String[] args) [hoho], just that "hoho" should be "code" instead.

  • Can i format numbers with spry?

    Can i format numbers for display with spry? I've got a number
    field and want to put commas in for thousand seperators and also
    need to pad some numbers with zeros....kinda like numberformat()
    really in CF, else i guess I have to do it with in my data
    preparation,
    thanks,
    john.

    Hi John,
    So if I were going to make this work with your XML, I would
    create a custom column on the fly after the data was loaded. This
    custom column would strip the formatting and convert the resulting
    numbers into real numbers. Also, for any rows that had nothing, it
    would stick a zero in this custom column.
    Then when it comes time for sorting, you sort on the custom
    column instead of the formatted one.
    Look at this example. It shows you how you can create custom
    columns:
    http://labs.adobe.com/technologies/spry/samples/data_region/CustomColumnsSample.html
    --== Kin ==--

  • I can't seem to find the data tab in format inspector...is there any other way to format numbers as currencies?

    I can't seem to find the data tab in format inspector...is there any other way to format numbers as currencies?

    Hi Aakritie,
    What version of Numbers are you using?
    What operating system?
    Your profile shows  Macbook Pro  (that is OS X) and also iOS
    I am using Numbers 3.2 on a Mac book Pro under OS X 10.9.2
    Format Inspector shows this when a cell is selected:
    Then choose a Data Format:
    Then:
    Regards,
    Ian.

  • How to format numbers in Address Book for iPhone

    I am planning to get an iPhone within the next few weeks and have begun entering all the numbers from my current cell phone into Address Book so that I'll be able to sync it with the iPhone. Since I never had to sync these numbers with anything other than my .Mac account, they are all entered like this: (555) 555-5555. Do I have to format them differently so that I will be able to use them on the iPhone. And do I have to add a "1" for each number or can I have the iPhone add that automatically?
    Thanks.

    entering like your example works fine. Just remember that if your entering phone # outside the US use the "+" symbol. example +46 35 46678 67

  • Formatting Numbers with BPC NW 10.0 SP19 1 in Microsoft Word & PowerPoint 2010

    Dear BPC Experts,
    We are trying to use the BPC Add-in for Microsoft Word and PowerPoint; however, we cannot figure out how to get the numbers in a report properly formatted.
    I created a report directly in Word:
    Then, on the EPM Ribbon I attempted to go to Options>Document Options and use the Formatting tab Number Format field and received the popup:
    Error details:
    I Copied a report from the Excel Add-in Report Actions>Copy Report to PowerPoint Report Actions>Paste Report but the number formatting is lost and I get the same error as with Word if I attempt to use Options>Presentation Options.
    Any assistance with number formatting with the Word or PowerPoint Add-ins would be greatly appreciated.
    Thank you,
    Lisa

    Hello Lisa,
    Its simply saying that the both formats are different so its unable to apply the formatting.
    in order to apply formatting in Word we have a special tab Design.
    first create a report and then next go to design tab and choose any one of the default formatting table.
    the formatting should be vary dynamically. please see the below images as reference.
    Before formatting report looks like this
    After Formatting by using design tab
    Dynamic expansion
    I feel its little bit difficult when compared to excel...
    Regards,
    Saida Reddy G

  • Contract Generation question: Formatting, Numbering of clauses, variables

    Hi!
    I am trying to create a Contract Document Template (for Contract Generation) with Variables
    I created some Variable Collections, but when I link them to the Contract Template, they add on with a different formatting altogether, which is neither like the placeholder in the template nor like the template attached to the variable.
    My variable configuration was of the type Paragraph.
    If anyone has any helpful tips on formatting Contract Document Templates, it would be most appreciated.
    Also, how do I ensure that numbering of sections and clauses is sequentially made in the final Contract.
    Regards,
    Reshma

    I was able to fix the problem by making some word document format changes.
    Please ignore this question.
    Regards,
    Reshma

  • Formatted numbers in pie chart

    Hello
    I'm displaying a pie chart graph and the numbers in it are not formatted (eg 345234534 without any commas).
    I want to display numbers in a formatted way (0,000.00) in a pie chart, but if I use the NSTR function the number become a string and I can't use that number.
    How can I do this ?
    Bye
    Omer

    Hey Pramod,
    I really wanted your answer to work, but it doesn't. The NVAL function convert the String Type to a number type ( ==> the graph accept the type), but it also deletes the commas.
    Have you tried it yourself ?
    Bye
      Omer Shem-Tov

  • Forms - Formating numberic cells in LiveCycle

    Creating forms in Adobe acrobat Pro I could format a number cell to show negative numbers in red text and show parentheses. How can I do that in LiveCycle?

    The error(s) occur when trying to save the document.  I want each user to tell the first page how many rows they will need in the photo log table, so they would enter however many photos were taken in the box: "Number of Photos on Roll:"  ---> Then click the "Submit" cmd button.  That should expand the table.  Once it expands, it should also add the same amount of instances of the photo compilation page (2nd Page) as there are rows in 1st page table.  Then the user will populate each cell of the table on page 1 with data.  The data entered into the page 1 table cells will populate the text fields (photo caption) in Page 2 once the user clicks on the "Populate Captions!" cmd button in the lower left corner of the table on Page 1. 
    The problem is in the distributing of the form to the user so they can save the form after populating the data.  I did a test run this morning and for some reason it did do the "print to PDF" correctly for 5 photos on the roll (though this has not been happening every time and especially for a large number of pages, ie. 80 photos).  However, after entering the data for 5 rows on page 1 and then populating the 5 photo compilation pages, I saved a copy as "Save As PDF" and closed the document.  Then re-opened the copy in Acrobat Pro X.  The new copy:
    -had 5 additional rows added to Page 1
    -Duplicates of some of the fields
    -Only retained the 1st instance of the Second Page (Photo w/ Caption) and not all fields were populated
    Again, this all works fine in the LiveCycle Preview but not anywhere else.  I do not have this set up to be linked to an external data source (YET) but there is javascript in the cmd buttons.  I also do not want to distribute this form to end users and then collect the data back from them.  I want them to be able to save a copy of my LiveCycle designed form, open in Adobe Pro, populate the data and save as many copies as needed for form production.

  • How to edit phone format numbers (not Verizon user)?

    Hi folks, I own an iPhone 3GS and it is set to General > International > Region format = Brazil.
    Well, we had some changes in our state that they increased a prefix 9 in all cell numbers. So, it is now 9xxxx-xx-xx, but when I add it, It goes wrong as:
    (55 99) xxxx-xxxx, what mess everithing.ow do I get to edit it to fit my needs?
    Thanks in advance.

    I am havng a similar problem that I can't figure out. I have mutiple numbers for each contact. i.e. mobile with *82, mobile without *82 for texting, home number, work number etc...  I would like for them to come up in a spicific order. The two mobile numbers first and then home and work. That way I can get to the mobile numbers first as those are most used. Also so to save time knowing that all contacts are in the same order.  So far it has been random for each contact. Some come up mobile first either with or without *82, others come up home first and some come up work first. I have tried deleting the entire contact and starting over thinking that the first number you enter becomes the primary. That didn't work. Any suggestions?
    Thanks in advance

  • URL with multiple ItemValues (formatted numbers)

    Hi, guys.
    Another day, another prob... oops, wrong word, suppose to be another solution...
    I have a page with simple report on it.Each record has a link which pointed to javascript
    javascript:printable_rpt('#col1#',#col2#,#col3#,#col4#,#col5#,#col6#)
    (col1 is a date, other columns are numbers like 123,456)
    <script type="text/javascript">
    function printable_rpt(p1,p2,p3,p4,p5,p6)
    var v_values = p1+','+p2+','+p3+','+p4+','+p5+','+p6;
    url = 'f?p=&APP_ID.:2:&SESSION.::NO:RP:
    P2_HDN_1,P2_HDN_2,P2_HDN_3,P2_HDN_4,P2_HDN_5,P2_HDN_6:'+v_values;
    w = open(url,"Criteria",
    "Scrollbars=1,status=1,resizable=1,width=550,height=520,left=300,top=100");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    Page 2 is pure HTML page with the numbers i try to pass from page 1.
    Everything looks simple and workable. But... There is always some buts... :)
    Problem : because the numbers in report formatted with commas when
    page 2 opens i have a pieces of numbers in my hidden items. (i.e.
    if i sent 123,456 234,567 and so on, i get
    123 in p2_HDN_1
    456 in p2_HDN_2
    234 in p2_HDN_3
    567 in p2_HDN_4
    and so on...
    I searched help and found this :
    itemValues
    List of item values used to set session state within a URL.
    Item values cannot include colons, but can contain commas if
    enclosed with backslashes. To pass a comma in an item value,
    enclose the characters with backslashes. For example:
    \123,45\
    So i tryed to do something like this:
    v_values = p1+',\'+p2+'\,\'+p3+'\,\'+p4+'\,\'+p5+'\,\'+p6+'\';
    Unfortunatly it does not work, giving error "Object expected".
    Pls, help.
    Thnks in advance
    Mike

    Hi, Scott.
    Thanks for replay. I did try to put double backslashes and it did not work either. However it worked when i put double backslashes in javascript and single quotes in call for javascript :
    javascript:printable_rpt('#col1#','#col2#','#col3#','#col4#','#col5#','#col6#')
    var v_values = '\\'+p1+'\\,\\'+p2+'\\,\\'+p3+'\\,\\'+p4+'\\,\\'+p5+'\\,\\'+p6+'\\';
    Interesting...
    Thanks again for help.
    Mike

  • Format numbers in datagrid as fractions?

    I'd like to have a custom formatter to take numbers displayed
    in a column of my DG as fractions (e.g. 0.5 as 1/2).
    I had tried this in the past, modifying an existing
    formatter. And while I got it to work with text fields, I couldn't
    get it to work in a datagrid. I'm sure I must be missing something
    obvious...
    This code works:
    <comp:FractionFormatter id="makeFraction"
    myNumber="{0}"/>
    <mx:TextInput id="myTI"/>
    <mx:TextArea text="Formatted string is
    {makeFraction.format(myTI.text)}"/>
    But this does not:
    <mx:DataGridColumn dataField="{makeFraction.format(data)}"
    headerText="Amount" width="40"/>
    My formatter:
    quote:
    package myComponents
    //Import base Formatter class
    import mx.formatters.Formatter
    public class FractionFormatter extends Formatter {
    // Declare the variable to hold the pattern string.
    public var myNumber:String;
    // Constructor
    public function FractionFormatter() {
    // Override format().
    override public function format(value:Object):String {
    //Validate value - it must be a nonzero length string.
    if(value.length == 0) {
    // Return empty string and error message for zero-length
    string.
    error="Zero Length String";
    return ""
    //If the value is valid, format the string.
    switch (myNumber) {
    case ".25" :
    return "1/4";
    break;
    case ".5":
    return "1/2";
    break;
    case ".75":
    return "3/4";
    break;
    case "1":
    return "1";
    break;
    case "1.25":
    return "1 1/4";
    break;
    default :
    // If formatString is not "upper" or "lower",
    // return empty string and set the error message.
    error="Invalid Format String";
    return "";

    Actually, the fact that it's a string works for me here,
    since my custom formatter expects a string.
    That's the one last thing I'm confused about. Following the
    example I got from a book, I made my formatter. And it was the
    place I got the "myNumber" thing. So how would I modify my
    FractionFormatter.as to eliminated the need to pass the string from
    the main file (if I understand correctly):
    package myComponents
    //Import base Formatter class
    import mx.formatters.Formatter
    public class FractionFormatter extends Formatter {
    // Declare the variable to hold the pattern string.
    public var myNumber:String;
    // Constructor
    public function FractionFormatter() {
    // Call base class constructor.
    super();
    // Override format().
    override public function format(value:Object):String {
    //Validate value - it must be a nonzero length string.
    if(value.length == 0) {
    // Return empty string and error message for zero-length
    string.
    error="Zero Length String";
    return ""
    //If the value is valid, format the string.
    switch (myNumber) {
    case ".25" :
    return "1/4";
    break;
    case ".5":
    return "1/2";
    break;
    case ".75":
    return "3/4";
    break;
    case "1":
    return "1";
    break;
    case "1.25":
    return "1 1/4";
    break;
    default :
    // If formatString is not "upper" or "lower",
    // return empty string and set the error message.
    error="Invalid Format String";
    return "";
    }

  • Format numbers into alphabetical list?

    I am wondering if there is a way to take an excel spreadsheet in numbers and change the format to alphabetical - the person did the list by DOB and that is just not helpful to me in finding clients?

Maybe you are looking for

  • Error in Query (EXCEPT)

    Dear Experts, I Have Error in query My Query Such as: Select TransNum from Oinm where transType=310000001 Except Select Docnum from [dbo].[Opn_Stock] where U_ TransTypeStk=310000001 Show Error: Browse mode is invalid for statements containing a UNION

  • Is there a comparable automatic back-up system to Time Machine for 10.4.11?

    My dad has 10.4.11 running on a G4 tower. I want to get him a back-up system that will save all his work.   I myself have an Intel Mac running 10.6.8, with Time Machine saving all of my work to an external HD.  I know you can't use Time Machine with

  • How do I install the classic environment?

    I have an iMac slot loader that I got for my daughter. I have a retail version of OSX 10.2 installed on it and working fine. I also have alot of games but they require the Classic Environment. I have forgotten how to install the Classic environment!

  • CIC Configuration

    Hi, I am trying to configure the CIC in our system but somehow unable to complete it. After doing the following steps, I am getting a strange error; 1. Created a framework ID (assigned Visible and Hidden parameters) 2. Created a profile ID and assign

  • Can't establish connection to localhost

    Hi There, As of today I seem to be having a strange issue with Firefox 31, I'm unsure as to when this problem began as I haven't developed on this project for around 2 weeks. I have a PHP Development server running on localhost port 8000 using the fo