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!

Similar Messages

  • Decimal Point data for Stacked Column Chart

    Hi,
    I use a basic version of a Column chart for one of my projects. I use a stacked column chart with 2 data series namely "Expenses" & "Profit".
    I use decimal point numbers (with only two or three places after the decimal point) for both series.
    When I mouse over the bars of the output for tool tip, I view more numbers after the decimal point for some data.
    How to fix the decimal point to only 2 places & what is the reason for this behaviour?
    Attached is the sample output (output.gif) showing the above condition for the mentioned data.
    -Sen

    Create an toolTipShow event handler and use a NumberFormatter to set the precision of the numbers (sample code from LiveDocs):
    <?xml version="1.0"?>
    <!-- formatters\MainNumberFormatter.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Script>
            <![CDATA[
                // Define variable to hold the number.       
                [Bindable]
                private var bigNumber:Number = 6000000000.65;
            ]]>
        </mx:Script>
        <!-- Declare and define parameters for the NumberFormatter.-->
        <mx:NumberFormatter id="PrepForDisplay"
            precision="0"
            rounding="up"
            decimalSeparatorTo="."
            thousandsSeparatorTo=","
            useThousandsSeparator="true"
            useNegativeSign="true"/>
        <!-- Trigger the formatter while populating a string with data.-->
        <mx:TextInput text="{PrepForDisplay.format(bigNumber)}"/> 
    </mx:Application>

  • 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

  • Decimal points not displayed correctly

    Hi team,
    I am experiencing issues with displaying decimal points in the following fashion (selected element spinner and changing the number format in the appearance tab):
    Number Format: Percent
    Decimal Points: 0
    50%
    Number Format: Percent
    Decimal Points: 1
    50%
    Number Format: Percent
    Decimal Points: 2
    050%
    Number Format: Percent
    Decimal Points: 3
    0.050%
    Number Format: Percent
    Decimal Points: 4
    00.50%
    I was expecting something like this:
    Number Format: Percent
    Decimal Points: 0
    50%
    Number Format: Percent
    Decimal Points: 1
    50.0%
    Number Format: Percent
    Decimal Points: 2
    50.01%
    Number Format: Percent
    Decimal Points: 3
    50.012%
    Any views?
    Many thanks,
    Frank

    Amit/Frank,
    This is stange...
    Spinner is working differently in different systems...:) I tried it on 3 different systems...
    One system shows..
    Value is 50
    Number Format: Percent
    Decimal Points: 1
    5000.0%
    Number Format: Percent
    Decimal Points: 2
    5000.00%
    Second system...
    Value is 50
    Number Format: Percent
    Decimal Points: 1
    50%
    Number Format: Percent
    Decimal Points: 2
    050%
    and 3rd system..does not show up any change be it Decimal Points 1 or 2, it still shows 50
    -Anil

  • Remove decimal points

    Hi,
    how to remove decimal points from all the columns in table in obiee
    thanks

    hi
    add one decimal point
    is this the same? or any?
    Cheers

  • Help with decimal points

    hi,
    I'm trying to add commas, and 2 digit decimal point after a number. Can someone please help me with this small query.
    for example:
    63000 -> $63,000.00
    15000 -> $15,000.00
    2789164.15 -> $2,789,164.15Here is my code:
    select  '$'||ADJSTD_AMT
    from    finance.bud_lines
    where   fyr =2012Thanks in advance

    Rooney wrote:
    hi,
    I'm trying to add commas, and 2 digit decimal point after a number. Can someone please help me with this small query.
    for example:
    63000 -> $63,000.00
    15000 -> $15,000.00
    2789164.15 -> $2,789,164.15Here is my code:
    select  '$'||ADJSTD_AMT
    from    finance.bud_lines
    where   fyr =2012Thanks in advancewhen all else fails Read The Fine Manual
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions201.htm#SQLRF06130

  • IN sharepoint 2013 custom list number type column ,decimal point shown as comma

    i have a sharepoint 2013 site in which a custom list is there. In number type field while i enter decimal number, instead of decimal point comma is comming. Any help appreciate
    Thanks sanjay

    Hi SanjayPradhan,
    According to your description, my understanding is that when type decimal point in number field, it became comma.
    I made a test in my enviroment and it works like a charm.
    Did you have some formula in that column ?
    If yes, I suggest you can check the formula in list settings->columns.
    If No, I suggest you can recreate a new list and number field to test whther it works.
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Make one number after the decimal point

    hi all
    i have a column named quantity from the table job_done
    with values
    1900.8988
    34.67
    0.6788
    236.67
    789999.67676868
    i require the values to be 1900.8
    34.6
    0.6
    236.6
    789999.6
    i just require one number after the decimal point,i know substr but i am confused as to how to achieve this output
    kindly guide
    thanking in advance

    http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions221.htm#SQLRF06150
    Regards
    Etbin
    Edited by: Etbin on 5.5.2013 14:33
    <tt>substr(quantity,1,instr(quantity,'.') + 1)</tt> if those are not numbers but all contain a decimal point
    Edited by: Etbin on 5.5.2013 14:40
    <tt>case instr(quantity,'.') when 0 then quantity else substr(quantity,1,instr(quantity,'.') + 1) end</tt> when there are no <tt>null</tt> values
    <tt>trunc(to_number(quantity),1)</tt> seems to be the safest if quantities are really <tt>to_char(some_number)</tt>

  • Oracle NUMBER column retreived as System.Double instead of System.Decimal

    We've been using the OleDb Managed Provider for some time now, and all oracle NUMBER datatypes have always come back from the db as System.Decimal.
    we recently installed a new database, and now NUMBER comes back as System.Double. The table create scripts are the same for the new db. The client is not the issue as I can point the same web server at the old db and it works fine.
    I've been unable to find any documentation on the subject.

    I have the same problem also. I'm using VC++6.0 and ADO 2.71 to perform queries with an Oracle Client 9.2.0.1. The same query on same table but on different Server version returns different results. With the production server, which is an 8.1.7.4 server, a NUMBER column returns a LONG value, while on the Test server, which is a 9.2.0.5.0 server, the same column returns a DOUBLE value. The problem is that using ADO I don't check data type/size when getting values, but I aspect a LONG value because a created the column with NUMBER specification. Could this be a different default from previous server version when creating the NUMBER column without any SCALE and PRECISION attributes?

  • Regular Expression to Check number with at least one decimal point

    Hi,
    I would like to use the REGEX_LIKE to check a number with up to two digits and at least one decimal point:
    Ex.
    10.1
    1.1
    1
    12
    This is what I have so far. Any help would be appreciated. Thanks.
    if regexp_like(v_expr, '^(\d{0,2})+(\.[0-9]{1})?$') t

    Hi,
    Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002
    SammyStyles wrote:
    Hi,
    I would like to use the REGEX_LIKE to check a number with up to two digits and at least one decimal point:
    Ex.
    10.1
    1.1
    1
    12
    This is what I have so far. Any help would be appreciated. Thanks.
    if regexp_like(v_expr, '^(\d{0,2})+(\.[0-9]{1})?$') t
    Do you really mean "up to two digits", that is, 3 or more digits is unacceptable?  What if there are 0 digits?  (0 is less than 2.)
    Do you really mean "at least one decimal point", that is, 2, 3, 4 or more decimal points are okay?  Include some examples when you post the sample data and results.
    It might be more efficient without regular expressions.  For example
    WHERE   TRANSLATE ( str              -- nothing except digits and dots
                      , 'A.0123456789'
                      , 'A'
                      )   IS NULL
    AND     str           LIKE '%.%'     -- at least 1 dot
    AND     LENGTH ( REPLACE ( str       -- up to 2 digits
                    )     <= 2

  • How to delete decimal point and adding leading zeros....

    Hi,
    I have one requirement in the report   i.e.
            <b>Present Value    :</b>  44567.98
            <b>Expected Value  :</b> 0000004456798
    In the present Value how will I remove that decimal point and how to add those six ing zeros. I tried with CONVERSION_EXIT....but it is not giving. Help me...
    Thanks in advance.
    Regards,
    Kumar.

    Hi,
    Use SPLIT and COMCATENATE fnctions.
    Eg:  split l_v at '.' into l_v1 l_v2
            concatenate l_v1 l_v2 into l_v.
    For adding leading zeros
    Use FM CONVERSION_EXIT_ALPHA_INPUT.
    Eg:
    data: tknum type vttk-tknum value '99156'.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
         exporting
              input  = tknum
         importing
              output = tknum.
    Sri
    Message was edited by:
            Sri Tayi

  • How to set Decimal Point position from right to left Serial Read Evaluate Number within Range over RS-232

    I am new to Labview, I am communicating with a TQ8800 Torque meter via RS-232. The 16 digit data stream is as follows:
    D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
    Each digit indicate the following status :
    D0 End Word
    D1 & D8 Display reading, D1 = LSD, D8 = MSD
    For example :
    If the display reading
    is 1234, then D8 to D1 is :00001234
    D9 Decimal Point(DP), position from right to the left
    0 = No DP, 1= 1 DP, 2 = 2 DP, 3 = 3 DP
    D10 Polarity
    0 = Positive 1 = Negative
    D11 & D12 Annunciator for Display
    Kg cm = 81 LB inch = 82 N cm = 83
    D13 1
    D14 4
    D15 Start Word
    I am using a modified version of the basic_serial_write_read.vi. I am attempting to parse the 16 digit data stream extracting out the number and whether it is positive or negative. I am having trouble with the decimal point placement. Is there an example that could help me with this? After the number is parsed I am then comparing it to see if it is within +/- 9.2 N cm. If it is then the test passes. I am outputing the data to a file. I have included the vi. Also how can I check for different units of the annunciator. Any help would be appreciated.  Thank you.
    Attachments:
    basic_serial_read.vi ‏100 KB

    What is the definition of the End Word?  You will likely need to figure this out experimentally (the manual doesn't seem to define it).  Whatever it is, you should set that as the termination character and enable the termination character.  That will help you in keeping your messages in sync.  Just tell the VISA Reads to read more than a message should be, something like 30 should work nicely.
    The error you are seeing is a buffer overload.  This means that the instrument is sending data to you faster than you can process it.  So you need to figure out how to perform the read faster.  File IO is slow.  So you should put that into a seperate loop so that your loop does nothing but read the data from the port as quickly as the data comes in.  Use a queue to send the data from the reading loop to the logging loop.  This is known as a Producer/Consumer.
    And here is a cleaned up version of your code.  No need for your express VI or the formula node.  Some other general cleaning up also done to make it easier to read.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    serial read.png ‏80 KB

  • We can't add a decimal number column with the create table forms

    In the version 4, we can't add a decimal number column with the create table forms.

    In the GUI, I found the following column (I translate from french to english): PK, Name, Data_type, lenght, not null, default, comments.
    In the lenght field, if I enter 9,3 to have a NUMBER(9,3), I have a message saying that the number must be an integer.

  • Aligning decimal points in columns

    In my program I am writing I cannot seem to get the output to be formatted in the proper way. I need the columns to have the salary values aligned by their decimal points, by they are aligned to the left instead.
    Like this:
    Employee 1 2110.45 7-05-2004
    Employee 2 55.09 7-05-2004
    Employee 3 1100.00 7-05-2004
    This is the code I am using to print:
    public void printData() throws IOException {
              //Variable to read data from the text file
              BufferedReader in = new BufferedReader(new FileReader("EmployeeData.txt"));
            String str;
              Employee emp = new Employee();
              //Loop to read data from text file, alter salary, and print to monitor
              //Loop while there are lines remaining to read in text file
            while ((str = in.readLine()) != null) {
                   //Variable to break up each line in text file by name, salary, and date
                   StringTokenizer st = new StringTokenizer(str, "|");
                   //Loop while there are more elements in the current line
                   while (st.hasMoreElements()) {
                        //Retrieve name, salary, and date from the current line
                        String sName   = st.nextToken();
                        String sSalary = st.nextToken();
                        String sDate   = st.nextToken();
                        //Call function to calculate salary increase
                        double val = (new Double(sSalary)).doubleValue();
                        sSalary    = emp.calculateRaise(val);
                        //Print line to monitor
                        System.out.println(sName + "\t" + sSalary + "\t" + sDate);
            in.close();
    }

    If anyone wants to know how to align decimal points I
    found the answer here:
    http://leepoint.net/notes-java/25data/25strings/30conve
    sion/54num2string.htmlThat is not a true way to align decimal points. It is only a way to right align text. If your decimals are irregular with some being .0, and others .00 or .000 this will not work. But, it will probably work for your problem.

  • Setting number of decimal points using double

    Is it possible to set the number of decimal points
    e.g.
    double a = 2 * Math.random() - 1;
    If I print this it would show something like 0.2342345434332.
    What I want to do is show 0.234.
    Is this possible?

    here you go, you can run this small program to test the results for yourself...
    import java.text.DecimalFormat;
    public class floatTest{
         public static void main( String args[]){
    DecimalFormat threeDig =  new DecimalFormat("0.000");
          double a = 2 * Math.random() - 1;
          //If I print this it would show something like 0.2342345434332.
          System.out.println("double a >" + a);
    System.out.println("formatted>0.000 >" + threeDig.format(a)     );
         }//end of float
    }//end of floatTEstok?

Maybe you are looking for