Adding Decimal Place

Dear Guru
I want to add 5 digits after decimal in my pricing condition types.Pls suggest how to make this settings
Thanx
MK

Dear MK,
The transaction OY04 is the correct to define decimal places based on currency. However, before you
made the changes, please kindly make sure you don't have existing or not completing purchasing document
in your system as this will affect the document that may create inconsistency later.
BR,
Ian

Similar Messages

  • New question....adding decimal places...

    Ok my assignment is thus:The Lone Oak High School Marching Band is raising funds by selling fruit. In order to simplify processing of orders, only three types of packages of fruit are being sold. They are
    Box of Apples at a cost of $14.00
    Box of Peaches at a cost of $16.00
    Box of Oranges at a cost of $18.00
    There is a 10.00% tax on the total order amount. Write a Java program that reads the number of each type package on an order and computes the cost for the packages of each type ordered. Total the order, calculate the tax on the order, and the total including the tax. Print all items read and all items calculated with appropriate labels.
    Example:
    Boxes of Apples: 2
    Boxes of Peaches: 3
    Boxes of Oranges: 4
    Total cost of the fruit: 148.00
    Tax: 14.80
    Total Amount Due: 162.80
    Now ive got the program to work exactly as it should but for neatness i want it to have 2 decimal places. When it runs, ill use the above as an example, it cuts off the second decimal. Is there a nice way to add the the second decimal place?
    Edited by: chaoticglee on Jan 30, 2008 3:40 PM

    Try this as an example:
    import java.util.Scanner;
    import java.text.DecimalFormat;
    public class ex
        final static double HOTDOG_COST = 10.00;
        final static double TAX = 0.05;
        public static void main(String[] args)
            DecimalFormat money = new DecimalFormat("$0.00");
            Scanner in = new Scanner(System.in);
            System.out.print("How many hotdogs do you want? ");
            double subTotal = in.nextInt() * HOTDOG_COST;
            double taxCost = subTotal * TAX;
            double total = subTotal + taxCost;
            System.out.println("Cost of food: " + money.format(subTotal));
            System.out.println("Tax: " + money.format(taxCost));
            System.out.println("Total: " + money.format(total));
    }

  • Decimal places for JPY currency in change documents

    Hi Gurus,
    For opportunities in SAP GUI the change documents for JPY show incorrect numbers.
    The number is divided by 100 (two decimal places added).
    Checked the CDPOS table and found the values already divided (two decimal places added).
    SPRO->General Settings->Currencies->Set decimal places for currencies is set for 0 decimals for JPY.
    Is there any way I can get correct values in the change documents?
    Please advice. Any hint is useful.
    Thx,
    Martin Kuma

    Hi Naren,
    Thank you for the tip, however the TCURX table is changed via customizing and should be changed only during the system initialization.
    What I would like to do, is to assure that the system displays the values in change documents correctly. It should apply the currency conversion for the data displayed the same way it does for all the tables.
    Do you have any idea, how should I do this?
    Regards,
    Martin Kuma

  • How to get the exact decimal places displayed while exporting to Excel?

    Hi All,
    I have a requirement to display the exact decimal place values in my report. In my pivot table, i duplicated a column named order number and converted to percentage by applying these conditions Show Data As-> Percent Of-> Column. I got a resultant column with one decimal point. As i needed two decimal points i took the xml of the report and changed the minDigits='2' and maxDigits='2' values like this. After that i got the accurate answer. But when i export it as excel sheet it is not showing the % column properly. The values after 0 is not getting displayed. Any solution for this?
    Thanks in Advance
    Thenmozhi

    Hi Thenmozi,
    You can try adding the below statement in the Custom CSS section of the your column properties.
    mso-number-format:"\@"
    Edit your report--> Criteria-->which column you want to display in excel click column properties --> select CCS--> Paste here above code.
    Second way:
    Edit your report --> criteria-->click fx option for your column and apply the below code.
    2. '<span style="display:none">&nbsp</span>' || CAST(your column name AS CHAR)
    Award points it is useful.
    Thank,
    Satya

  • Set Decimal Places in a swing

    Ok so i know how to set decimal places in a applet and a command prompt type build but in a GUI i am trying to set them and it isnt working my code is:
    doc.insertString(doc.getLength(), strFICA[j] + "\t", textPane.getStyle("regular"));
    i went and added the information
    Decimal Format twoDigits = new Decimal Format("000.0");
    doc.insertString(doc.getLength(), twoDigits.Format (strFICA[j]) + "\t", textPane.getStyle("regular"));
    it gives me the error cannot find symbol
    symbol: method Format(java.land.String)
    Lacation: Class java.text.DecimalFormat
    doc.insertString(doc.getLength(), twoDigits.Format (strFICA[j]) + "\t", textPane.getStyle("regular"));
    ^
    what does this mean and help will be great

    Help given here is voluntary and people do try hard, but your questions are as unintelligible as they are naive. You really need to do some ground work first by reading the tutorials and trying things out for yourself before posting here.
    Those that get the most help are those that demonstrate they are willing to help themselves more than you seem to be.

  • 11g Client - Inconsistencies at the 16th decimal place

    In TOAD, SQLPlus, & ODBC clients numbers returned from a query are correct (max 3 decimal places)
    In Discoverer & from a report, the numbers are off at the 16th decimal place...
    EG:
    7.081 becomes 7.0810000000000004
    7.090 becomes 7.0999999999999994 (which is exceptionally weird because the rounding doesn't work)
    7.200 becomes 7.2000000000000002
    Any idea what would cause this?
    How can I query from SQLPlus (or TOAD) to confirm whether or not those extended decimal places actually exist in the table?

    Alan3 wrote:
    Maybe I should have added this little tidbit...Please be as verbose as possible (feasible). Show queries etc. - use copy and paste.
    The particular table in question is an interface table that has been in place for 4+ years.
    The columns in question are of data type NUMBER.
    We just switched the PC that runs this interface to Win7 with an 11g client.Describe the interface. E.g. In what program language is it written?
    Now we see the extended decimals with Discoverer (on any PC) and the interface report (an old report built from developer 6) as well, but not from SQL, etc...How is changing one pc client related to the Discoverer and Reports reports? Has the database server been upgraded also? (full version from select * from v$version; )
    Do you see the same change for "old" data (from before the switch).
    I want to know if there is a setting in SQLPlus or the DB client that limits the display of the decimal places that I can alter to determine if the extended decimals actually show up... (they shouldn't be there at all)Both sqlplus and db may affect the outcome, e.g.
    SQL> desc test
    Name                                      Null?    Type
    A                                                  NUMBER
    B                                                  NUMBER(38,5)
    SQL> show numw
    numwidth 10
    SQL>
    SQL> select * from test;
             A          B
         12345      12345
    123456789  123456789
        123,45     123,45
    123,456789  123,45679
         1,234      1,234
    1,23456789    1,23457
    6 rows selected.The same values was inserted to both columns of test. With scale = 5 for its datatype, B values are rounded (4th and 6th row).
    SQL> set numw 5
    SQL> select * from test;
        A     B
    12345 12345
    123,5 123,5
    123,5 123,5
    1,234 1,234
    1,235 1,235
    6 rows selected.The numwidth setting affects sqlplus formatting.
    Edited by: orafad on Jan 5, 2011 9:44 PM

  • How can I limit a double value to two decimal place?

    How can I limit a double value to two decimal place?
    Java keeps on adding zero's to a simple double subtraction:
    1497 - 179.64 = 1317.3600000000001The answer must have been simply: 1317.36

    If the trouble is with output ...
    If the trouble is with value accuracy ...The trouble is with OPs understanding of and/or expectations of IEEE 754 floating point numbers. o_O
    [And it's probably a view (output) issue.]
    how can i actually use numberformat to cut those
    unwanted decimal places?Read the API - Puce already provided the link.

  • BUG: Inputting decimal places into new duration preferences (Premiere Pro 2014.2)

    So, I checked the release notes for the newest version of Premiere Pro CC (2014.2). I was happy to see the ability to switch between frames and seconds when choosing the default durations of transitions and still images.
    Immediately found a bug. Decimal places don't work correctly after switching units.
    Open Preferences.
    Switch Video Transition Default Duration units from the default Frames to Seconds. Try to insert a decimal place using the keyboard. It doesn't work.
    Hit OK to close the Preferences, with Video Transition Default Duration now set to seconds
    Open preferences again and change the units back to frames. Now try to input decimal places. No matter where the text cursor is, the decimals just get added to the end of the form field.
    This seems to affect all three form fields (not just Video Transition, but Audio and Still Frame as well).
    Really weird bug, and I'm not sure how you guys at Adobe missed this one...
    Anyone else having this bug? I'm on Windows 7.
    If so, can someone please file an official bug report? I'm at work and low on time, but I felt like I needed to bring this up to make sure I'm not the only one in this boat.

    I've reproed this issue and logged a bug report.
    A workaround is to toggle the Unit setting, click Okay to close Preferences, then reopen Preferences and adjust the Value. Sorry for the inconvenience.
    I urge you to submit your own bug report (Adobe - Feature Request/Bug Report Form). The more customers who report an issue, the higher the odds that a fix will make it into the next release...

  • Too many decimal places to fit in JTextField

    I'm putting a Double value into a JTextField (by adding it to ""), and occasionally the value has too many places to fit in the text field.
    Suggestions on limiting the number of decimal places (least significant digits)?
    Thanks.

    Have a look on this one
    http://java.sun.com/j2se/1.5.0/docs/api/index.html?java/text/DecimalFormat.html

  • Decimal places default

    Hi
    Is there any way of setting a default number of decimal places for a new column added on a deski report, so that any new column added on any report will always take this default number of decimal places?
    Thanks

    Louise,
    Within the designer module you can set the default format for any of the objects within the universe.
    In the report that than will be the default format used. If you add a new column to the report the new column gets the same format as the column where you started from. So if you are in a column where the format is 3 decimal places and you insert a new column to the left or right that new column format will also have 3 decimal places.
    Regards,
    Harry

  • Limiting decimal places

    is there a way to limit the number of decimal places that appear in an output?

    Yes, truncate it manually or by some input method limiter.
    If you are reading a spreadsheet file and outputting that to the console, then you can simply check the value of the string, and determine how many numbers come after the "." charactor. That will give you an index in the string.
    Using that index you can then simply create a new string including the whole number, decimal, and only those points that you want.
    You can also do the reverse and expand the decimals from, let's say 1 decimal (like 10.2) to a 2-digit decimal (like 10.20) by simply adding the needed places in the string after the last charactor.

  • Round to two decimal places...and keeping trailing 0

    Ok, I have done a search on rounding. So I made this function:
        private double round(double number){
           double d = Math.pow(10, 2);
           return Math.round(number * d) / d;
        }However, if I use a number like 3.59999, it returns 3.6. For what I am using it for, I need it to return 3.60. Any ideas? Thanks.

    You normally only format for display! You seem to be wanting the default format to show 2 decimal places. This makes no sense. Internally a number(double or float) doesn't know about decimal places so how can the default format know you want 2 decimal places?
    For the most part you only need to worry about decimal places when you print a number using the DecimalFormat class.
    There are times when you might want to round values to 2 decimal places before doing more calculation. I have only met this when adding monetary values when it is important that a column total equals the sum of a displayed column values. In this case one uses something like the technique you originally proposed to round values before summing them. You then use DecimalFormat to display the values.

  • Printing two decimal places from BigDecimal values

    I am using BigDecimal to represent money values. My output needs to line up so that (with a non-proportional font) the decimal point and the two decimal places are in the same columns for each line. But when the dollar value has zero cents, or has a number of cents that is divisible by ten, it drops the trailing zeroes, and drops the decimal point if the decimal places are both zeroes. For example, I want to see "25.00" instead of "25" and "25.50" instead of "25.5". It doesn't seem to make any difference if I set the scale to 2. (I have resorted to getting the toString() of the BigDecimal and hacking the string before I display it, but surely there must be an easier way?)
          BigDecimal aaa = new BigDecimal("25");
          BigDecimal bbb = new BigDecimal("25.0");
          BigDecimal ccc = new BigDecimal("25.00");
          BigDecimal ddd = new BigDecimal("25.5");
          BigDecimal eee = new BigDecimal("25.50");
          BigDecimal fff = new BigDecimal("25.75");
          aaa.setScale(2);
          bbb.setScale(2);
          ccc.setScale(2);
          ddd.setScale(2);
          eee.setScale(2);
          fff.setScale(2);
          System.out.println("SCALE SET TO 2: ");
          System.out.println("aaa = " + aaa);
          System.out.println("bbb = " + bbb);
          System.out.println("ccc = " + ccc);
          System.out.println("ddd = " + ddd);
          System.out.println("eee = " + eee);
          System.out.println("fff = " + fff);produces this output:
    SCALE SET TO 2:
    aaa = 25
    bbb = 25.0
    ccc = 25.00
    ddd = 25.5
    eee = 25.50
    fff = 25.75Thanks,
    Martin

    Thankyou Dr. Clap. This solved my problem - I added an LHS to the setScale statements:
          aaa = aaa.setScale(2);
          bbb = bbb.setScale(2);
          ccc = ccc.setScale(2);
          ddd = ddd.setScale(2);
          eee = eee.setScale(2);
          System.out.println("SCALE SET TO 2: ");
          System.out.println("aaa = " + aaa);
          System.out.println("bbb = " + bbb);
          System.out.println("ccc = " + ccc);
          System.out.println("ddd = " + ddd);
          System.out.println("eee = " + eee);produced:
    SCALE SET TO 2:
    aaa = 25.00
    bbb = 25.00
    ccc = 25.00
    ddd = 25.50
    eee = 25.50

  • Round Down (or not at all) and display as percent to 2 Decimal Places

    Hello,
    I have a report in SSRS with a number of computations done in the tablix.  I need to format an expression such that the value will be displayed as a percentage with 2 decimal places that is truncated(not rounded).
    For example,
    0.66666 should be displayed as 66.66% (not 66.67%)
    0.5 should be displayed as 50.00%
     I have done much Googling and have tried everything I can think of but no luck.
    I would appreciate any help anyone can provide.
    Thanks!
    Scott Olander

    Hi Alisa,
    Thanks for your response; it was very helpful.  Unfortunately I'm still having some difficulty...
    When applied to a hardcoded numeric value, your solution seems to work perfectly:
    =Left(0.66666 *100, 5) &  "%" ---> 66.66%
    I had to modify it slightly when applying it to one of my calculations as whole percentages were not displaying .00 to the right of the decimal point.  This is what I modified it to:
    Left(Format((Fields!CorrectAudits.Value/(Fields!InCorrectAudits.Value + Fields!CorrectAudits.Value) * 100),
    "N"), 5) &
    This works perfectly when applied to this particular calculation, but for some reason when I apply it to the following calculation I get funky results:
    Original calculation:
    = SUM(Fields!CorrectAudits.Value)/SUM(Fields!IncorrectAudits.Value + Fields!CorrectAudits.Value)
    Modified calculation:
    =Left((SUM(Fields!CorrectAudits.Value)/SUM(Fields!InCorrectAudits.Value+Fields!CorrectAudits.Value)*100), 5) & "%"
    Results:
    0.66666 ----> 66.66 %   (This is as desired)
    0.25      -----> 25%        (Should be 25.00%)
    0.07692      ------> 7.692 %  (This should be 7.69%)
    Adding the Format "N" piece to this calculation fixes the issues with 0.25 and 0.07962 but causes 0.6666 to round to 66.67% (not the desired result).
    Do you have any ideas?  Am I doing something wrong and just not seeing it?
    Thanks again for your help.
    Scott
    Scott Olander

  • Error while updating decimal places in general settings

    Hii All
             I have got an error while updating Decimal places in General Settings
    Cannot update while another user is connected to the company i have checked, there is no other user logged in, i could add other settings but the problem is only with Decimal Places
    Note : there are no postings yet, a fresh database for a new client
             what could be the possible reason
                                                                 thanks
                                                                         RIYAZ

    Hiii All
          As a forum rule, i have initially gone through with the existing threads and then i was force to post a thread,
              would be helpfull if there is any other way..
                                                Thanks
                                                         RIYAZ

Maybe you are looking for