Two decimal points

Greetings
What would be the syntax if I want to use use '999G999G990D00' to show only two decimal points for outstanding_receipt_value in the following
((declared_quantity - delivered_qty) * po_unit_price) outstanding_receipt_valueThank you

if i understand your posting correctly and you want only those numbers that are covered by decimal. you might want to give this a try.
substr(to_char(((declared_quantity - delivered_qty) * po_unit_price),'999G999G990D00'),
       instr(to_char(((declared_quantity - delivered_qty) * po_unit_price),'999G999G990D00') ,'.')+1) new_stre.g.
SQL> select str,
  2         instr(str,'.') pos,
  3         substr(str,instr(str,'.')+1) new_str
  4     from (select to_char(123456789.99,'999G999G990D00') str from dual);
STR                    POS NEW_STR
123,456,789.99         13 99

Similar Messages

  • Precision to two decimal points and...

    How do I format an output line for two decimal point precision with a double variable?
    also...
    What is the best way to clear the screen? I am using the sun compiler with Windows 2000.

    He's right, using Java to clear the screen is not pretty. Here is a rudementary solution:
    public class ClearScreen {
       public static void main(String args[]) {
          //clear the screen
          String[] commands = new String[4];
          commands[0] = "mode.com";
          commands[1] ="con";
          commands[2] = "cols=80";
          commands[3] = "lines=50";
          try {
             Runtime.getRuntime().exec(commands);
          } catch (java.io.IOException ioe) { ioe.printStackTrace(); }
          //print a formatted decimal number (see DecimalFormat API to format the way you want)
          double someNumber = 1234347.657687;
          java.text.DecimalFormat formatter = new java.text.DecimalFormat("#,##0.00;(#,##0.00)");
          System.out.println(formatter.format(someNumber));
    }

  • Convert the money datatype to a 2 decimal point format.

    Whats the best way to convert the money datatype to a 2 decimal point format in ms sql 2005 for use in my applications.
    this?
    CAST(tr.depositReceivedAmount AS decimal(10 , 2))

    I respectfully disagree with the notion that you should change the SQL column from a 'money' data-type to something else.
    In most database servers, 'money' is a data type that is designed to provide very consistent behavior with regard to arithmetic accuracy.  In Microsoft Access, the representation is a scaled-integer.  In MS SQL Server, it is obviously similar.  Ditto Oracle and all the others.
    You want the money data-type in the database to have this accuracy, because "hell hath no fury like an accountant in search of one lousy penny."   The database column storage-formats are designed to satisfy accountants, and that is a Good Thing.
    Meanwhile, you also want to take care as to exactly how you deal with the values.  There are several points where rounding could take place.  You do not have at your disposal the strongest possible handling of floating data-types in ColdFusion.  You are also somewhat at the mercy of whatever interface software may lie between you and whatever SQL server you may use.  "It's okay to round values once, but not multiple times."
    I suggest rounding the value right before display, and stipulating that the user's input must be two decimal places.
    Then, you might have to do some things at the SQL server's end.  For instance, when you update a value in the table, you may need to use server-side logic to explicitly truncate the value to two decimal-points, so that an update of "$34.56" explicitly updates the column to "$34.5600."  (This sort of thing has to happen within the SQL server context.)  You know that the user's input has exactly two significant digits, but maybe (maybe not...!) the SQL server might not know this.  You want to ensure that the server's internally-stored value represents exactly two significant digits, when the value originates from a user-input.
    Don't err on the side of "your convenience" or "what looks good on-screen."  (If you do, get ready to get phone-calls from the accountants, always at inopportune hours of the night.)

  • How to assign Two Decimal Places for numeric Columns(urgent)

    Hi all,
    I have lot of Numeric fields under Advance table Section.
    for those fields data is coming single decimal point (42.5).
    but client want to see the data upto two decimal points like 42.50
    how to achieve this functionality.
    Please give me some idea on this functionality.
    it is very urgent for me.thanks in advance
    thanks
    vinu

    Use OADataBoundVariables and set the US currency format for the data. It would come accordingly. You can look for the exact code in some other threads.
    Another option is to set the decimal format in the getter of the VO. It would show accordingly on the page.

  • CP7 - Show 4 (or more) decimal points for User Variable?

    Is there a way to show 4 or more decimal points for user variables?
    For some reason, I'm only showing two decimal points for user variables in Captivate 7.
    Micky

    Yeah, I was afraid of that.
    Right now, I have am dividing the values of two separate text box entry fields.  I have to calculate the values to determine if they are getting a promotion, lateral transfer or lower pay range.
    I'll figure out a workaround or just use java.

  • Answers Decimal Points

    When I'm in answers it is by default rounding all of my dollar amount columns to one decimal point.
    Ex: Amount = $17.55 (on the database) is rounding to $17.6 in my Answers result.
    I know that I have the ability to edit the format in Answers to override the result (specify two decimal points). However, i would like to set it up so that it is by default always producing two decimal points.
    Where would I set this up?
    Thanks...

    hi ,
    we can set the in administator tool or answers also
    administrator tool
    click the column properties
    use the round function in expression Biulder.
    apply the round function wit 2
    and go to presentation services
    and change data formates what we required

  • GL - Increase decimal points in existing SOB

    Hi,
    We have a legacy system which interface to Oracle GL.
    In that system, the currency values are stored up to four decimal points (ex: 1009.7536).
    But in existing Oracle GL SOB is defined for two decimal points (ex: 1009.75)
    Can we change the number of decimal points interfaced or change in SOB.
    Or is there any way of capturing the remaining figures to Oracle GL.
    Appreciate your response.
    Madhura.

    Refer to note 143286.1 on Metalink

  • How do I create new photoshop doc using 3 decimal points without it defaulting to 2 decimal points?

    I am creating a new document in Photoshop at the following dimensions. 3.889"w x 6"h. After document is created I go check the canvas size or the Image size and it shows my document as 3.89"w x 6"h. How do I get Photoshop to allow 3 decimal points?

    I think that the way measure units work in photoshop, i try to draw a rectangle marquee and only two decimal point appear.
    I tried in indesign CS6 and 3 decimal work fine.

  • Can Measurement tool go to three decimal points?

    Hello,
    I often have to make precise measurements of the position of objects in a PDF. Both the Measurement tool and the Info window display measurements to two decimal points. I need three (xx.xxx). Is there any way to change this?
    Can this be changed with a script?
    Thanks,
    Tom

    It looks like only 3D Measurement gives you control over significant digits to display.

  • JSP removing decimal points

    Hello all.
    I am developing a site and Im new to JSP. now one of the pages I am developing needs to pull data out of a MySQL table.
    I can pull the data and it is working great! BUT the particular data I am pulling is pricing information.
    The data is in the following form:
    1.4800
    thats a price so its one dollar and fourty eight cents.
    the extra two decimal points are needed by the backend software so I cant remove them from the MySQL table (plus there is like 66,000 entries in the table).
    I need to find a way to remove these with JSP some how as they are irrelevant to what we need to display. the numbers are already rounded off so that all entries end with two 0's is there an easy way to remove these two zero's?
    Just so you know my code goes something like this.
    <form>     
    <% out.println("<select name=\"select\">");
    out.println("<option selected>Please select a Country</option>");
    int iBusNo = 0;
    int i = 0;
    while(bMoreData)
    out.println("<option>" +BusDirRecordset.getString("LongName")+ " - $" +BusDirRecordset.getString("Rate")+ "</option>");
    bMoreData = BusDirRecordset.next();
    i++;
    out.println("</select>");
    %>
    </form>If you have any suggestions I'd greatly appreciate the help!

    Go to http://java.sun.com/j2se/1.4.1/docs/api
    Look up the documentation for the class "NumberFormat".
    Cut and paste (with a slight mod) from the online document:
    NumberFormat nf = NumberFormat.getInstance();
    nf.setMinimumFractionDigits(2); // cut off trailing zeroes
    nf.setMaximumFractionDigits(2); // change "1.5" to "1.50"
    for (int i = 0; i < a.length; ++i) {
        output.println(nf.format(myNumber[ i ]) + "; ");
    A neat side-effect is that it's supposed to know your local "locale" information, so if you're in Spain using commas instead of periods as the fraction separator, that's what it'll do.

  • How to get only two digits after decimal point of an expression

    i am doing simple multiplication between two float numbers.
    both the numbers have two digits after decimal point.
    so naturally the result will have 4 digits after decimal point.
    i want to get only two digits after decimal point.
    help me please...

    If you just want to limit the displayed decimal places, you can do the following...
    import java.text.*;
    public class Formatting {
        public static void main(String[] args) {
            NumberFormat format = NumberFormat.getNumberInstance();
            format.setMaximumFractionDigits(2); //what you seem to want
            format.setMinimumFractionDigits(2); //if you always want at least 2 digits displayed
            System.out.println(format.format(12.345));
            System.out.println(format.format(12.0));

  • My quantity is showing with a decimal point and two spaces

    When people are entering a quantity of 1 it is showing as 1.00.  It is confusing my users because they think this is a price.  How can I get rid of the decimal point and two spaces? 

    Hi,
    I am not able to reproduce this problem with a number field.  Are you using this field as a payment-quantity field?.  If so, please check that the Quantity in your payment setting is linked the the right field.
    We can do a quick test: create a new form from scratch, add one textfield, then on the field property panel select Type=number.
    Select Test tab and click on the Test Web Form button
    Enter a number and commit --> check if you get the decimal point and the spaces.
    If you still have problem with this, let me know
    Thanks,
    Lucia

  • How can I get the float variable in 2 decimal point?

    after running the following simply manipulation program,
    14.85 should be returned, but in stead, 14.849999.
    how can i change the precision? i want the returned number in 2 decimal point.
    public class TestC {
    public static void main(String[] args) throws Exception {
                   float var = 0.00f;
                   var = (float)4.95 * 3;
                   System.out.println(var);

    There is absolutely no way that you can change the precision. It is fixed.
    If you want to display two decimals places (which is not the same as changing the precision) then you can use the following.
      float var = 0.00f;
      var = (float)4.95 * 3;
      java.text.DecimalFormat f = new java.text.DecimalFormat("0.00");
      System.out.println("var=" + f.format(var));

  • How to use os x yosemite calculator - need decimal points

    I updated to OS X Yosemite version 10.10.2 for my Mac.  I cannot figure out how to use the calculator!  All I want is to add dollars and cents.  How do I get a decimal point?  I've searched the web and don't see this addressed.

    I double checked.  No decimal point anywhere!  I tried typing in a number with a period….nothing.
    Along the top row it has ASCII, Unicode, Show Binary buttons and 8, 10, 16.  I tried them all. 
    I have AND , OR, NOR, XOR, <<,>>, X<<Y, X>>Y, bite flip, word flip in the first two columns. Letters and numbers in the next three columns, and AC, C, RoL, RoR, 2's, and 1's buttons along with math operation symbols in the last 2 columns.
    I can't believe I can't just add up numbers with decimals when doing simple math!
    Any other ideas?
    Thanks.

  • Using Lookout to write a decimal point to an RTU in the field.

    Is thier a way to send an lookout exp.(ex.1.56) to a known writable register on an RTU out in the field. I am using the modbus object. I plan to send this expression that I have created to a series of regs. in the field and pull the info to a readable screen to display the converted readings from lookout. I want to use lookout to handle the complexed math and send it to the registers. EX. The RTU sends raw data (40003)to lookout. I convert it in an expression and I want to send it to reg(40501) out in the field. Question # 2. I also need to see if I can use a portable laptop in the field that mirrors the main host and is updated when the host updates. This is for the same application above. This is a mobile RTU
    if you will. But as you move around in a 70 mile area repeaters change.

    Hi,
    It's not clear to me what exactly you mean by "you can't send two values to a register."
    I am guessing you're trying to write a 32-bit floating point number. If this is the case, then here's how you would do it:
    To write a 32-bit floating point value (decimal point), you will have to use the F registers. E.g., F40001. Lookout will then split the value into two 16-bit registers accoring to the IEEE floating point notation and write them in two consecutive registers.
    Similarly, when you want Lookout to interpret two (consecutive) 16-bit registers in your PLC as a single 32-bit floating point number, you will use the F registers.
    For a detailed description of all this please see the following two articles:
    Detailed Descripti
    ons of Lookout Accessing Floating Point Numbers/Registers in a Modbus PLC:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/2de82ef20b2cc991862567f600432e33?OpenDocument
    The Working Principle behind Reading Adjacent (32 Bit) D or F Registers of Modbus
    http://digital.ni.com/public.nsf/websearch/4ef459f549fcc7028625660a000a7629?OpenDocument
    I hope this is what you're looking for.
    Regards,
    Khalid

Maybe you are looking for

  • MacBook 13' Late 2011 Display is Slow/Choppy

    Hi fellows, how are you doing? I've just bought a MacBook Pro 13' on last friday. It's the Late 2011 configuration with i5 processor. Following the notebook manual instructions, I've changed the original 500GB Hard Disk to a Seagate Momentus XT 500 G

  • WVC54GCA and its soft with a lot of issues

    First of all, sorry if I have some writing error, my native language is spanish.  Well, I'm really frustrated because I'm having a lot of problems with the cams. I really need help because I don't know anything else to do. I have two cameras, both ar

  • Frozen after reboot after upgrading Blackberry App World

    Hi my phone is the Blackberry Curve 8900 and i am on the o2 network.I recieved an upgrade message tonight from Blackberry App World for the newest version of the app.I downloaded and then let the phone reboot.Since then the load up screen gets about

  • Best practice to handle contents greater than 1 TB

    Hello All, I am using Sharepoint 2010 and I need to know whats the best practice to handle contents greater than 1 TB Specifics 1) Contents will be collection of images (Jpeg format) and collectively the sizes can go above 1 TB till 10 TB or more 2)

  • CR 2008 Scheduling Bug

    I was wondering if anyone else has noticed a bug when trying to schedule a report for a specific time (run once) from the Infoview front end that my end users use to run/schedule reports.  This works fine from the admin side, but from the infoview si