Moving decimal spaces in a number

Hi, does anyone know of a way for a decimal place to be moved in a number? Ex: My system currently prints this number: 444444.44444444, I want it to print 4444.4444. Is there a class that allows me to do this? If not, can anyone point me in the right direction on getting this accomplished

Try this ...
try {
double d = 444444.44444444;
DecimalFormat numFormat = new DecimalFormat();
numFormat.setMaximumFractionDigits(4);
numFormat.applyPattern("0000.0000");
numFormat.setMaximumIntegerDigits(4);
double result = Double.parseDouble(numFormat.format(d));
System.out.println("After Conversion :: " + result);
catch(NumberFormatException e) {
System.out.println("Exception :: " + e);

Similar Messages

  • Decimal space problem in Condition value of Import PO

    Dear All,
    In PO the condition value found to be 0.00.
    When the problem explored,we find only 2 decimal places appears for the value.
    If the value is 0.0021,it appears as 0.00 only due to decimal space given in KOMV(structure) against KWERT field is 2 decimal space only.
    Can we increase the decimal space?If we increase to 4,what will be the effect or NO effect?
    Please advice.
    Regards

    You can do this in OY04 - Set Decimal Places for Currency Code
    But this is not preferred when you execute this transaction the system gives teh following messages
    Information: Caution: The table is cross-client
    Warning: In a productive system, you 
    must not delete the            
    currencies in use or change the
    decimal places.                
    This could make amounts in     
    documents already posted       
    incorrect or invalid.          
    Warning:
       Before you continue, please read the foll
       text carefully.                         
       If you do not heed this note, you can cau
       irreparable damage to the system with thi
       transacton.                             
       In the R/3 System tables currency fields
       stored as decimal figures with a variable
       of decimal places. The decimal point is n
       stored in the field in the database. Inst
       each currency field refers to a currency
       field. In this transaction you assign the
       of decimal places to this currency key un
       Example: If you have set currency USD to
       two decimal places and you post an amount
    USD, an amount of 10000 USD is stored
    currency field in the database. Not un
    amount is processed further or is outp
    the system use the currency key from t
    reference field to determine the numbe
    decimal places via this table. In this
    table content can be interpreted corre
    further processing or formatted for ou
    the correct punctuation.             
    If after posting you changed the numbe
    decimal places for USD, for example, t
    existing field content of 10000 would
    interpreted for futher processing or o
    10 USD (10.000). This would mean that
    contents of tables across the system w
    all currency fields containing an amount
    be interpreted incorrectly by 10 per cen
    change the number of decimal places for
    currency already in use, you must conver
    the tables in the R/3 System that contai
    currency fields, so that the data integr
    remains. This cannot, however, for both
    organizational reasons and under the run
    aspect be carried out in a productive sy
    The following changes to the TCURX table
    thus lead to the loss of data integrity
    make the changes in a productive system
    transport them into a productive system:
    o Change to the number of decimal places
      existing currency                    
    Do you want to change the decimal places
    all recommendations?                    
    If you Click Yes Button then the system takes you to "Decimal Places for Currency Code" Screen
    there you can change the decimal place of your currency

  • How do you display a price in 2 decimal spaces? e.g.  $39.95000

    Does anyone know how do you display a price in 2 decimal spaces? e.g. $39.95000
    jsp code preferred please,
    thanks in advance!

    hi,
    this is jsp code just follow code
    <%@page language="java" import="java.text.*" %>
    <%
    double d=39.95000;
    NumberFormat fmt=new DecimalFormat("0.00");
    out.println(fmt.format(d));
    %>
    jpreddy

  • Moving can I transfer my number

    I'm moving soon.  My current number is being used for my consulting business.  The new location is in a different area code so I know I can't transfer the number, but I was wondering if I can continue to pay for the current number and have any calls to it forwarded to my new number. 
    I think I could do this in a round about way if I were to sign up and transfer this number to vonage, but was wondering if Verizon could offer the same service.

    Contact your local business office (phone number is on your phone bill) and ask about having a feature/service called "Remote Call Forwarding" added to you current/old phone number.  All calls originally destined for you current/old phone number will be redirected to you new number --even though the old phone line has been disconnected.  With this arrangement YOU will be billed for all charges for all calls forwarded.  (Sort of like establishing an 800 number for your customers, except that your customers continue to simply dial the number they have always used.
    Alternatively, if you simply disconnect your current/old phone number you should be presented with the choice to have calls to your old number intercepted and the recording will announce your new number, so that your customer can hang up and re-dial the new number --in this case your customer(s) will pay the charges associated with calling the new number.  You should also be presented with the option of having the intercept recording offer to automatically connect the caller to the new number --again for an additional charge in addition to the charges associated with calling the new number.
    Note that "Remote Call Forwarding" is a feature that will remain active for your number until/unless you cancel it.  The intercept announcement/connect arrangement will be automatically removed from your old number after several months, based on the demand for new telephone service (and numbers) in your area; or if the number of calls to the old number drops in volume.

  • Keyboard is not working good, when i "click" space it appears number "6" instead

    from my macbook pro- the keyboard is not working good, when i "click" space it appears number "6" instead.
    Any idea what is wrong here?
    I do not hace a Apple store close to me.

    Firefox 3.6 requires at least OS X 10.4, the last version that works on OS X 10.2.8 is Firefox 2.0.0.20 available from ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.20/mac/en-US/

  • How to add 2 decimal places if the number is whole number(Integer)

    Hi Gurus- I had a requirement to add the zeros for two decimal places even the number is an whole number.
    Example: I had a column which i gave the datatype as Number(8,2) .While Inserting from the flat file to the custom table column,i am rounding it to 2 decimal places.But if its the whole number i want that also to be rounded to 2 decimal places.
    1) 3456.89675 It's getting inserted as 3456.89
    2) 123 It's getting inserted as 123 (Instead i want this to be inserted as 123.00)
    3) 123.50000 It's getting inserted as 123.5 (Instead i want this to be inserted as 123.50)
    Can you please let me know how can i achieve it to insert any number(decimal or whole number) from the flat file as 2 decimal places in the custom table column.
    Thanks in advance.

    Please do not post duplicates -- To update the date for the first of the month

  • Difference in space occupied by NUMBER(38,0) and NUMBER(10,0)

    Hi,
    I will like to know if there is any difference in storage space occupied by NUMBER(38,0) and NUMBER(10,0) if I store whole numbers less than 100,000,000 in it. I remember of having read it that it will occupy same storage space but I will appreciate if someone can explain why is it so.
    Thanks,
    Akshay.

    Please Refer to:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/datatype.htm#i16209

  • How to change the space for check number using OT45?

    How to use OT45 to change the check no.of FF68 Check Deposit? I want to change the variant so that I can increase the space for check number as have come up with a special case can someone please help me out how can I do it via OT45?
    Thanks in advance...
    Regards
    Nitin

    Hi Amit,
    Yes, I agree that we can create a new variant and can assign it after activating it. But, what I want is that I have created a new variant and check space in FF68 is 3 digits and how can I make changes in OT45's new variant so that cheque space gets changed to 10digit or more.
    Please Help.
    Thanks in advance...
    Regards
    Nitin

  • PDF Forms: problem with keypad "decimal dot" when filling "number" fields

    Ok, here's my problem :
    I've created a form with fields. My client want to input in those fields amount of money. So I've created fields formatted with the "Number" category. 2 decimals, "1234,56" separator style, not currency symbol. So far, so good!
    When testing out the form, here's what happening :
    On the computer that I've created the form (iMac, Acrobat Pro and Reader, french canadian keyboard layout and system)
    Using the keypad, I can input numbers, with the "decimal point" from the keypad no problem.
    But when the client is trying to to the same on his PC (and the same is happening with my PC at home, Acrobat Pro 9.2, french canadian keyboard layout and system), I CAN'T use the "decimal point" keypad key to input numbers (like 43,25). It's just not working (error sound). I can however use the "dot" on the keyboard near the "M" key, but the client don't want to do that.
    Why is it working on the Mac, but not on the PC's!?
    So far, the only workaround that I've found is to set the "money" fields categories to "none" instead of "number.

    It is a little bit tricky, but you might have to add your own formatting handler. You would proceed as follows:
    1. Set the Format to "none".
    2. Add the following script to a Custom Keystroke event:
    if (event.change.length > 0 && event.willCommit == false) {event.change = event.change.replace(/\,/gim, ".") ;
    3. Add the following script to a Custom Format event:
    event.value = event.value.toString().replace(/\./gim, ",") ;
    And that should take care of the situation.
    Note that i have not tested the scripts, and there may be a chance for bugs.
    The advantage of this solution is that internally, you will have the correct format for a number, so that calculations will be correct.
    Hope this can help.
    Max Wyss.

  • Moving equipment from one contract number to another contract

    Hi experts,
    I got a requirement to move line items of one contracts to another contracts .
    While moving line items into the target contract , I have to move material , quantity and equipment number.
    I am able to do for material and quantity by using BAPI_CUSTOMERCONTRACT_CHANGE ,but I am unable to
    move Equipment number of that line item to target line item.
    Please provide me some solution.
    Thanks in advance.
    Srinivas.

    The query is not so clear.
    If you mean to say you would like to consider order processing thru billing between two different compnay codes, then you will have to go for Inter company processing.
    Please check this link on inter company process
    Re: Intercompany Billing not Intercompany STO
    Hope this helps
    Regards
    Sai

  • Decimal points appearing for number in flat file upload

    Hello
    I am trying to upload a .csv file to a datasource. It is a number but when I see it in preview I am getting a decimal number with 3 points.
    Can you tell me what I am doing wrong?
    Thank you
    Ravi

    Hello Durgesh
    Thank you for the reply.
    I am new to BI. I am just trying to upload a flatfile to Datasouce.
    I have created InfoObject with NUMC 4. The thing I am not able to get is, when we are uploading a file from source system to datasouce, I am at an understanding that there is no link between the field type we are using for the infoObject and the .csv file data in the data source. Please correct me if I am wrong.
    So even before creating the transformation, by just loading and looking at the preview of data in datasouce itself, I am seeing decimals for number. I even tried to make the data file in notepad and save as .csv inorder to avoid any cimplications with excel.
    Please advice.
    Thanks
    Ravi

  • Altering number of decimal places of formatted number

    Using http://java.sun.com/docs/books/tutorial/i18n/format/numberFormat.html I have worked out how to format a number, almost. When I follow the example in this tutorial that shows how format a double, it always rounds it to 3 decimal places. How do I alter the number of decimal places that this formatting procedure outputs? I used the US as the locale and English as the language. I am assuming that if these parameters are chosen, 3 decimal places is the output. Is this assumption correct?

    Look at the next chapter :)
    http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html

  • Adding a decimal point to a number column

    I have a column defined as number(10,2)
    I've imported data to this column from a betrieve database which did not use decimal points, so my data looks like this:
    13000
    2000
    I need to update this column and place a decimal point in front of the last two zeros, so the new data would look like this:
    130.00
    20.00
    Any suggestions on the best way to accomplish this?

    yes, all the data ends with double zeros and all the data is end the same format.
    I gotcha! There is no need to insert a decimal if I divide the 100! Dah!
    Thanks!

  • Massive modification of "Calling Search Space" under "Directory Number Configuration".

    Hi all,
    I have a question in order to modify in a massive manner the field "Calling Search Space" inside of the option "Directory Number Configuration".
    There are a lot of phones that doesn't have the correct CSS, and I need to change it, but are aprox. 500 phones...
    Is there any form that I can accomplish the task in a massive form? May be doing a query or uploading a CSV file??
    Thanks in advance for your help.

    Hi Carlo,
    I've tried your steps, but when I search for the extensions to modify, the checkbox doesn´t appear near of the result of any extension
    the option just show me the extension list an some other information but not anymore.
    Is there any option that I need to enable inside of CUCM??
    Also the version of CUCM that we are using is 9.1.
    Thanks for your help

  • Set decimal tick label for number axis

    Hi everyone,
    In my chart, the number axis tick label is always like float number. I need an decimal number tick label. Because I use auto-range on this axis, i think this
    NumberAxis(double lowerBound, double upperBound, double tickUnit) is not good for me.
    Also, I have try setTickLabelFormatter on FX example, but for me, it seems like useful for set prefix and suffix. Can someone give me solution for this problem
    Edited by: pirent420 on 19:08 17-09-2012: add tag

    It doesn't work properly.
    You can look the link here:
    Before I use yours: before
    After I use yours: After
    It convert all number object to integer. So if my chart has 4 tick label like: 1.0, 1.25, 1.5 and 1.75, it conver to 1, 1, 1 and 1. It not what I looking for. If axis has 3 value: 1,2 and 3, I just want it present only 3 tick labels, not expand more tick label like 1.25, 1.5, 1.75 ....

Maybe you are looking for

  • I have an ipod touch 3rd generation and the whole touch screen is not working.

    I have a 32gb ipod which I bought for fifty dollars and when i bought it had a pretty baddly cracked screen but thing is it worked fine. Every part of the screen worked fine; it was as senstive where the screen was cracked as the areas of the screen

  • To Maintain different UoM for a material

    Hi, It is possible maintain materials in ISO UoM (in Italian Company) and sell them to American Customer in American UoM? So, It is possible that in the Sales Orders to American customers the materials are expressed in American UoM? I would appreciat

  • Airplay icon not working on any devices now...

    My TECH: ATV3 iPad 3 iPhone 5 Internal Airport Internet Sharing iMac 11,3 I'm getting extremely frustrated with how my ATV3's Airplay function is up and down for working. This has happened before and after the i0S6 updates... Basically, I can never g

  • Parallels vs. Fusion - Which is better (lighter) on my Mac?

    Can someone give me insight into which is cleaner on my Mac? Which one works better with the mac? thanx

  • String.replaceAll strange behavior...

    I have found strange behavior of String.replaceAll method: "aaaabaaaa".replaceAll("b","a"); // working fine "aaaabaaaa".replaceAll("b","a${"); // throws an exceptionThat could be probably a bug? p.s. using jdk_1.6.0_12-b04