Print a number variable as a real number without approximation forms

Dear all
I want to pront my variable number without approximation forms, here is my output problem:
SQL> select imsi from table where num like '393';
number
*2.2202E+14*
I want that the output will display as a real nyumber without approximation.
Regards
Ali

chg78 wrote:
yes, and it is working for me, i am using SQL DEVELOPER,
how can i paste the result?
CAST(2.2202E+14ASNUMBER(38,2))
222020000000000
All you're doing is turning a number specified in scientific notation to a number i.e. doing nothing.
Just to prove it, if you look at the underlying datatypes:
SQL> ed
Wrote file afiedt.buf
  1  select dump(2.2202E+14)
  2        ,dump(cast(2.2202E+14 as number(38,2)))
  3* from dual
SQL> /
DUMP(2.2202E+14)
DUMP(CAST(2.2202E+14ASNUMBER(38,2)))
Typ=2 Len=4: 200,3,23,3
Typ=2 Len=4: 200,3,23,3Both the original number and the CAST'd number produce identical results.
The difference is that your SQL Developer environment isn't set up to display large numbers in scientific notation, but displays it as a full number.
The issue the OP was having was that querying a number in the SQL*Plus environment (as indicated by the "SQL>") a full number was being displayed as the short hand scientific notation.
Edited by: BluShadow on 16-Mar-2011 11:30
to add the proof of cast making no difference.

Similar Messages

  • Printing Error:Invalid variable number (RPT -6300) (Field: F_060) Variable '69'  [Message 200-38]

    Dear Friends,
    Greetings to you all!
    Below error is not allowing me to view the PLD on all inventory related documents like GRPO/DELIVERY/GOODS RECEIPT/GOODS ISSUE/Inventory transfer and also at invoice level if transaction was posted directly and attached file is for your information.
    I couldn't find the (Field: F_060) and Variable '69' even in hidden files.
    "Printing Error:Invalid variable number (RPT -6300) (Field: F_060) Variable '69'  [Message 200-38]"
    Request you to provide me the solution ASAP to clear this issue.
    With warm regards
    Rajesh Babu K
    9959934444

    Dear Mr.Nagarajan garu,
    Thanks for the reply and the problem is not with one specific PLD, even it is not allowing to view SAP given PLD's also.
    And it is happening only with the inventory related transactions.
    EX- If invoice had any base document then it can be viewable.
          If Invoice/GRPO docs were directly posted then printing error is throwing
    Thanks & Regards
    Rajesh Babu K

  • What variable use to show number of quiz ?

    what variable use to show number of quiz ?
    (it like Absolute)
    it is not in (reference of captivate)
    for example, quiz have 5 page.
    on test page 1 show 1.
    on test page 2 show 2.
    on test page 5 show 5.
    it like microsoft word show page number when print
    sorry if you not understand.

    All quizzing system variables are described in these blog posts: System variables in Captivate 6 - Captivate blog    and for 7.0.1: New features in Captivate 7.01 - Captivate blog. In 8 no variables were added to the category Quizzing. And there is no progress quizzing system variable. Only the total number of questions, second part of the progress indicator, is available: cpQuizIntoTotalQuestionsPerProject.
    You'll have to create and populate a user variable. Some help maybe in: Customized Progress Indicator - Captivate blog

  • 57F4 challan print - getting parent item no and po number for child item

    Hi ,
    In 57F4 challan, Subcontract components - i.e Child items are used for creating the challans.
    However while printing needs the parent item no with the purchase order number for that child item number.
    It is getting stored in RM07M structure.
    Any inputs / suggestions how to retrive parent item number and purchase order number for child item i.e for subcontract items?
    Thank you .
    Prasad.

    Thank you for the reply. I checked the table RSEG table for material document and PO details, however the RSEG gets populated when there is credit or debit entries.
    In this 57F4 challan there is no credit or debit enteries hence would not get in RSEG table.
    Appreciate your inputs for any other alternative.
    OR is there any table or Function Module to get the enteries of the struture of RM07M .

  • Using a number variable in an SQL statement

    Hi,
    I am trying to use a variable in an sql statement and I have run into problems when the variable is a number. The following line of code works if the variable is a string but not if it is a number.
    "SELECT TOP 1 UUT_STATUS FROM UNIT_UUT_RESULT WHERE UnitID =  '" + Locals.LocalUnitID + "' ORDER BY START_DATE_TIME DESC"
    Is there a difference in the use of the single and double quotes and the + sign for number variables?
    Thanks
    Stuart
    Solved!
    Go to Solution.

    Hi Stuart,
    I am assuming that the UnitID is stored as a numeric in the database? If so, the proper SQL syntax for comparing with numerics should not use a single quote (or any quotes for that matter). The quotes are used only for strings.
    So you would want to use:
    "SELECT TOP 1 UUT_STATUS FROM UNIT_UUT_RESULT WHERE UnitID =  " + Locals.LocalUnitID + " ORDER BY START_DATE_TIME DESC"
    This is really more of an SQL question universal to all languages, not just TestStand.
    Here is an excellent resource that you can consult:
    http://www.w3schools.com/sql/sql_where.asp
    Jervin Justin
    NI TestStand Product Manager

  • Page number variable based on text anchor & referencing numbered list

    I've looked and looked, not only in Adobe's help centers but also just in Google, and I simply cannot find an answer one way or another to my questions!
    I'd like to do 2 things:
    1 - Use a variable to reference on what page more information can be found on a certain subject (i.e. To find out more, please see page ##.), though the page number will undoubtedly change as I continue working on this project and eventually build my book from the various documents I've created.  I can insert some kind of marker or text anchor or whatever I need to by the information I'm referencing, as long as it's not visible, of course.  I'd just like to have a dynamic reference so I don't have to go back through and try to verify that my page references are all correct.  The Current Page variable will not help me in this case.
    2 - I'd also like to reference some numbered tables I have; they are currently setup as being numbered by a custom paragraph style that is in number mode 'Continue from previous number'; another situation where table numbers will change as I continue working on this book and I'd like a dynamic solution.  If I need to insert a variable to calculate the table numbers, rather than use the paragraph style numbering system, that's fine; I'd rather do a bit more work now so that I can be assured my references are accurate when this is all said and done!
    Thanks in advance for any help you can give!

    Thanks a lot; I just didn't delve deep enough into that and misunderstood some of the relevant options that did exactly what I needed.
    Thanks again!

  • How can I make imaginary number with known real number

    I need to compose pure imeginary number in my programming(ie. chamge the real number to be the imeginary part of a complex number). But The functions I found can only change the real number to be the real part of a ccomplex number. How can I compose or make imaginary number with known real number? And Can LABVIEW cope with computation of complex numbers directly?

    Use the Re/Im To Complex function, which is found on the Functions >> Numeric >> Complex palette.
    Good luck,
    Jim

  • Printing Error - pstopdffilter/pstocupsraster failed with err number -31000

    Hi All,
    I'm hoping someone could assist me with this. After googling like crazy for a solution I thought I had to post here on the forums. I'm a new Mac user (only a few days now) so please bear with me. I will also post this on the Java Forums because I don't know if this is a problem with my code or with the Mac settings.
    Setup
    I've got a Java Applet running on the mac (written in Eclipse 64 bit) on a Mac with OS X 10.6.4 on. Also, Java 1.6.0_21 (both 32 bit and 64 bit) is installed on the machine. The printer installed is a ZPL Label Printer (Zebra Technologies ZTC GK420d).
    If I use another application such as TextEdit to print, it works fine.
    *Problem Description*
    Whenever I try print from the Applet nothing comes from the printer, my code does not break or catch any exception at all but the printer queue gives the error: *pstopdffilter/pstocupsraster failed with err number -31000.*
    Code
    The code I use with this Java Applet works absolutely fine on Windows XP 32 bit (IE 7.0, Google Chrome and Firefox) as well as on Windows 7 64 bit (I.E 8.0, Google Chrome and Firefox) but never on the Mac. For any developers who might be able to help, the code is below:
    import java.applet.Applet;
    import javax.print.Doc;
    import javax.print.DocFlavor;
    import javax.print.DocPrintJob;
    import javax.print.PrintException;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.SimpleDoc;
    import javax.print.attribute.PrintServiceAttribute;
    import javax.print.attribute.standard.PrinterName;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    import javax.print.attribute.standard.Copies;
    public class UKMJavaPrintApplet extends Applet
    public void init()
    System.out.println("Initialising UK Mail Java Printing Applet...");
    public void start()
    System.out.println("Starting UK Mail Java Printing Applet...");
    PrintLabelZPL("^XA^FO100,40^BY3^B3,,30^FD123ABC^XZ","Zebra Technologies ZTC GK420d");
    public void stop()
    System.out.println("Stopping UK Mail Java Printing Applet...");
    public void destroy()
    System.out.println("Preparing unload of UK Mail Java Printing Applet...");
    public int GetPrinterCount()
    PrintService[] services = null;
    int serviceLength = 0;
    try
    services = PrintServiceLookup.lookupPrintServices(null, null);
    if(services != null && services.length > 0)
    serviceLength = services.length;
    catch(Exception z)
    System.out.println("Failed to get printer count: " + z.getMessage());
    z.printStackTrace();
    return serviceLength;
    public String GetPrinterName(int index)
    String sPrinterName = null;
    String printerName = "";
    PrintService[] services = null;
    try
    services = PrintServiceLookup.lookupPrintServices(null, null);
    for (int k=0; k < services.length; k++)
    PrintServiceAttribute attr = services[k].getAttribute(PrinterName.class);
    sPrinterName = ((PrinterName) attr).getValue();
    if(index == k)
    printerName = sPrinterName;
    break;
    catch(Exception r)
    System.out.println("Failed to get printer name: " + r.getMessage());
    r.printStackTrace();
    return printerName;
    public Boolean PrintLabelZPL(String zplString, String printerName)
    String errStr = "";
    Boolean boolSuccess = false;
    try
    if(printerName != null && printerName != "")
    PrintService psZebra = null;
    String sPrinterName = null;
    PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
    pras.add(new Copies(1));
    PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
    for (int i = 0; i < services.length; i++)
    PrintServiceAttribute attr = services.getAttribute(PrinterName.class);
    sPrinterName = ((PrinterName) attr).getValue();
    if (printerName.equals(sPrinterName))
    psZebra = services;
    break;
    if (psZebra != null)
    DocPrintJob job = psZebra.createPrintJob();
    byte[] by = zplString.getBytes();
    DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE;
    Doc doc = new SimpleDoc(by, flavor, null);
    System.out.println("Printing to: " + printerName);
    job.print(doc, pras);
    boolSuccess = true;
    System.out.println("Printing Successful.");
    else
    errStr = "Zebra printer not found.";
    System.out.println(errStr);
    boolSuccess = false;
    else
    errStr = "No printer name was provided.";
    System.out.println(errStr);
    boolSuccess = false;
    catch (PrintException e)
    System.out.println("Print Failed with PrintException: " + e.getMessage());
    boolSuccess = false;
    e.printStackTrace();
    catch (Exception f)
    System.out.println("Print Failed: " + f.getMessage());
    boolSuccess = false;
    f.printStackTrace();
    return boolSuccess;
    Does anyone have any ideas on how I can resolve this and print to the ZPL printer from my Java Applet on the Mac?
    Any help would be much appreciated.
    Thanks!

    We managed to solve our own problem. This was not directly a Java Problem, but a problem with the setup of the Zebra printer on the Mac. Printing directly to the ZPL Printer never worked and always gave the error Printing Error - pstopdffilter/pstocupsraster failed with err number -31000.
    To solve this, we had to use the CUPS (Common Unix Printing System) interface. CUPS is apparently installed standard with every Mac. Being a new Mac user I didn't even know this a week ago. We had to use CUPS to add the printer, set it to be a "RAW" printer and then add something called a Class. Now when printing from the Java Applet, we DO NOT print to the actual Zebra printer, we print to the Class.
    Here are the steps on how to accomplish all this:
    1. As an Admin user, log onto Cups using the Safari browser by entering *http://localhost:631* into the Address Bar.
    2. Select the Administration tab and click, ‘Add Printer’
    3. Select the required local printer and then ‘Continue’
    4. Enter a Name, Description, Location and uncheck the ‘Share This Printer’ checkbox, where:
    a. Name = Queue Name (e.g. Zebra_RAW)
    b. Description = Human Readable Description (e.g. Zebra1)
    c. Location = Human Readable Location (e.g. My Mac mini)
    5. Click ‘Continue’
    6. Click ‘Select Another Make/Manufacturer’ and select ‘Raw’. Click ‘Continue’
    7. Click ‘Add Printer’
    8. Check that Banners are ‘none’ and Policies are ‘stop-printer’ (Error) and ‘default’ (Operation)
    9. Click ‘Set Default Options’
    10. Under the Administration tab, click Add Class.
    11. Enter a Name, Description, Location and select the Members:
    a. Name = Queue Name (e.g. ZebraRAWClass)
    b. Description = Human Readable Description (e.g. ZebraRaw)
    c. Location = Human Readable Location (e.g. My Mac mini)
    d. Members = the Queue Name of the new raw printer
    12. The only visible printers on the list then will be your non-raw printer/s and the printer class which you just created.
    13. Now when printing from Java Code, you must use the class as the printer in order to print raw ZPL.
    So in my example code in the previous post, I would print like this: PrintLabelZPL("^XA^FO100,40^BY3^B3,,30^FD123ABC^XZ","ZebraRaw");
    And it works! I hope this can help others with the same / similar problem.

  • Make a variable return a random number?

    I need to know how to quickly make a variable return a random number, in PHP if i wanted a variable to return a random number it'd look like this using a built in function,
    (int)$my_variable = rand(0,10); // returns 0 through 10 randomly
    How can i do this with Java if say my variable looks like this.
    public Integer madeThisUp = 1; // Needs to be random 0-10 aswell..
    I can't find any tutorials on this that make clear sense to me, :-\

    2) java.util.Random has a bunch of methods that
    correspond directly to common uses of random numbers.
    I can't imagine a situation where Math.random would
    be easier to understand.case in point, when a method is provided for you but you
    try to reinvent it with:
    int i = (int) (Math.random() * 10);

  • Group Number Variable

    I would like a group number variable formula to be added as a feature to Crystal Reports. This is how it would work:
    For example, You have a sum of records for a group called payroll. The total is $20,000. Payroll is comprised of FICA, Medicare, and Salary etc. You want to add a budget amout for this group using a group number variable. The budget amount is $20,000. This budget amount would remain static for this group. The difference would be sum of records payroll group- group number variable which is $20,000 - 22,000=-2,000. Right now the maxinium function and manual running totals have to be used to arrive at the same figure. The group number variable could be used in cross tabs as well. Does anyone know if something like this is being planned?
    Seán

    Perhaps you're on an earlier version? It's just called "GroupNumber". It will return what group you are on. Have you tried using that function for your needs?
        - Kathryn Webster (Report Design Consultant)
               Kat&#39;s News: http://diamond.businessobjects.com/blog/279

  • Is a text plus number a real number?

    I just download the app, so is the number that it says, my real number?

    No, it isn't it is a pseudo number used by TextPlus.

  • Returns the integer part of a real number

    Hello,
    I need to know an integer value as part of a real number, like this:
    double a = 0;
    double x = 0;
    x = 1500.00;
    a = (x / 1000);
    now "a" must be equal to 1.
    Pascal has a function INT (a = INT(x/1000)), and what about java ?
    Thanks for help,
    guido

    Hello,
    I need to know an integer value as part of a real
    number, like this:
    double a = 0;
    double x = 0;
    x = 1500.00;
    a = (x / 1000);
    now "a" must be equal to 1.
    Pascal has a function INT (a = INT(x/1000)), and what
    about java ? It is almost the same thing.
    double d = 1.5;
    int i = (int) d;

  • SUS PO document number same as ECC PO number

    Hi Experts,
    We are on SRM 7.0 with ECC EHP4, SUS4.0 with SRM on single client.
    The requirement is to have the same SUS PO document number as the ECC PO number so that supplier would not require to refer to another number and avoid confusions.
    Else can we hide SUS  document link and enable the PO document number as a link for processing in SUS. Please let me know the best possible solutions if any.
    Thanks,
    -Devi Swain

    Hi Devi,
    There seems a liitle chance of confusion as the ECC PO no. is also displayed along with SUS document number in the "List of PO" screen and also in the PO secreen.
    Making ECC PO no. as a link would defitely require development and then you have to hide the SUS document no. to avoid presumed confusion.
    What i have proposed to my client is that we will include the ECC PO no. on the PO print (through smartforms). This was well accepted.
    You may try to propose this.
    If not accepted then the only way is development.
    Regards,
    Ashish

  • Report for Asset number and its Purahcse order number

    Hello Friends,
    Please give me details of report for Asset number and its Purchase order number .
    Regards
    Nilesh Vakil

    hi,
    GO to ME2N...
    use SHIFT + F4..
    there check for the acc. assign cata. field and input the asset  and execute..
    Regards
    Priyanka.P

  • P.O number for a billing document number

    Hi Experts,
    From  which table we can find a PO number for corresponding billing document number(VF03)?

    hi RAVI,
    Go to T.code SE16
      enter table name VBRK-->enter
       billing doc type,billing doc no,s.org,d.channel
      execute
    waiting for reward points
    mcm

Maybe you are looking for

  • How to share a HP Laserjet between a iMac and a PC Laptop

    I have been sharing a HP Laserjet 1200 between my iMac and a Toshiba Satellite laptop for years by using the USB port for the iMac, and using the parallel port for the PC. This has worked great for years. I've just purchased a new laptop, and it no l

  • Where to mention the IP address in a  JSP dyn page

    Hi , I am creating a mail sending system with Javamail. Created the JSP dyn page, wrote the event handler in the java file. and all. now I have to mention the IP address of the SMTP server. where should I do this.... inside the event handler itself?

  • Table to find the assigned Roles with my User ID

    Hello Experts, 1.Is there any specific table to find out the assigned roles to my User ID? If there is no table, let me know is there any transaction to find out the assigned roles to my User ID? 2. When I assigned Marketing Pro role to my user id in

  • Done With Best Buy, Thanks to TRE

    Bought a $40 memory card for my wife's camera a few days ago.  Found a better deal online (surprise surprise) and returning the memory card--unopened--the next day.  The rude, obnoxious clerk (typical of what you find at BB stores these days) bluntly

  • E4x syntax and determining the attribute name at runtime

    I'd like to be able to determine the attribute to use to say assign to a <mx:Label> in my ItemRenderer at runtime. The dataProvider is an XMLList. My ItemRenderer (partially) looks like this: <mx:Repeater id="ItemRepeater"> <mx:Text text="{ItemRepeat