Cost of ints compared with doubles

This question isn't strictly specific to Java, but I was just wondering if there were any rough figures, or an order of magnitude as to how much more expensive float or double calculations are when compared with int calculations for operations such as addition, multiplication etc.
I've read that some people try to avoid floating point calculations wherever possible and would like to know if it is still worth the effort, with processing power at the levels it is now.

These sort of performance metrics are usually best avoided. Use whichever arithemetic is best for the job at hand. In 3 months the slow processor will be replaced (I think there's something called Moore's Law about this)
It is quite possible that the floating point processor is 10 times as slow as the fixed point arithmetic, but you will waste more than 10 times the instructions by reimplementing COBOL's fixed point decimal data type in Java. You could also break that precious pipeline with an unfortunate branch down in the machine code.
These kind of measures also vary significantly from one machine to another, often within the same family. If this level of performance is a serious issue, you are best off programming the critical portion of your code in Assembly language and customizing it for each supported processor, you could even have a C version for the other processors. That's what the real-world games programmers often do.

Similar Messages

  • Compare with my cost of goods sold account to my sales revenue account

    Hi,
    i want to compare with my cost of goods sold account to my sales revenue account.
    After PGI my COGS a/c will be debited INVENTORY a/c will be credited so after sales my SALES a/c credit & customer a/c debit . I want to see what is the difference value of COGS a/c with respective billing Sales A/C
    No doudt we can see in Profit of margin in billing doc. It is quite impossible to see all document in respective wise. Please give a solution for which i can know what is profit of margin with comparing values in both of Account.
    Thank's
    Abhay

    Hi,
    This is possible through CO-PA report. You can get the result per sales order.
    Also the same can be achieved in FI as follows:
    Outbound delivery document thr" VL01N is captured in "Reference field" of FI doc (BKPF-XBLNR) generated through delivery.
    If the settings are done by SD person to capture the outbound delivery no. in "Reference field" of FI doc generated through Billing document (VF01), then there will be a common field to compare the documents in both accounts.
    In transaction FAGLL03, select the account COGS & Sales revenue account. Once the report displays, sort or take sub total on this common field "Reference".
    This will give you difference between COGS & Sales revenue per document.
    Hope this resolves your query.
    Regards,
    Ashutosh

  • Hi guys, need your help with iCloud notes on Mac 10.7.5; I've found this feature's more useful comparing with stickers, however can't pin notes to desktop or dock, "double click"on the note doesn't work with this version of software.

    Hi guys! Need you help with iCloud Notes on Mac Pro 10.7.5. I've found this apllication more useful comparing with "stickers", however can't pin it to desktop or dock. Thanks a lot in advance!

    Hi guys! Need you help with iCloud Notes on Mac Pro 10.7.5. I've found this apllication more useful comparing with "stickers", however can't pin it to desktop or dock. Thanks a lot in advance!

  • CVI Nugget - Dealing with Doubles

    I'm not sure if there were past Nuggets in the CVI forum, but here is my first nugget: Dealing with Doubles
    I read an interesting article today:  http://www.exploringbinary.com/the-answer-is-one-unless-you-use-floating-point/
    As I am mostly active in the LabVIEW Forum, I will do a cross post because I want to do a comparison between CVI and LabVIEW when dealing with doubles.  I have not yet implemented the code in LabVIEW, but I do expect the same results.
    In the article by Rick Regan, he explains the results that was obtained when running his function.  I have duplicated is function and add my own main function below. 
    #include <utility.h>
    #include <ansi_c.h>
    #include <userint.h>
    // Prototypes
    double f(double a);
    void main (void)
        int i;
        double result;
        double myArray[21] = { 5.1,  91.3, 451.9, 7341.4, 51367.7, 897451.7,
                            1923556.4, 59567771.9, 176498634.7,
                            2399851001.7, 60098761442.7,
                            772555211114.1, 1209983553611.9,
                            59871426773404.9, 190776306245331.2,
                            2987154209766221.6, 19843566622234755.9,
                            719525522284533115.3, 8399871243556765103.9,
                            39847765103525225199.1, 553774558711019983333.9 };
        for( i = 0; i < 21; i++)
            result = f ( myArray[i] );
            printf("f(%22.1f) \t = %18.17f \n", myArray[i], result );
        while ( !KeyHit() )
            GetKey();  // to see the io screen before the program closes
    double f(double a)
     double b, c;
     b = 10*a - 10;
     c = a - 0.1*b;
     return (c);
    As expected, I get the same output as Rick.
    Rick's output:
    My output (and yes, I was lazy and did not create a pretty table..  I just wanted to show a comparison of the values).
    You can read the article (link provided above) for more details on the values obtained above.  However, the message I am trying to convey is that you have to be careful when "dealing with doubles".  Often I see code where there is an if statement that compares the value to zero.
    For instance something like:
      if ( double zero == 0 )
        // then do something when true
    and people get upset and frustrated because they do not understand why the true case never gets executed.  As a matter of fact, I do recall several discussions on this topic in the LabVIEW forum.  I have actually seen the discussion turn into an argument. 
    What is important to understand is how the processor interprets double values.
    I hope this information will save someone some headaches..
    RayR
    Attachments:
    RicksOutput.PNG ‏16 KB
    MyDoublesOutput.PNG ‏24 KB

    Thanks Ray for this nugget.
    I had fallen across such cases in the past enough times to have learned not to perform any exact match on doble values
    Now your example gives me a reason for this.
    The accuracy of binary representation of doubles has been discussed several times in this forums: in addition to posts that explicitly mention IEEE754 standard I remember a few ones that also cover this subject (for example this thread and this one), but indeed having it explained in a good way is a valuable addition on this subject!
    And yes: you should be awarded for posting the first nugget on the CVI board!
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Benefits of SAP Business Warehouse Reporting compared with the Query-tools?

    Hello experts,
    I've been creating reports with SAP Query tools, but been faced with few problems. First of all, there are restricted possibilities in terms of joining tables, and thus I cannot include all the data required for the report.
    One solution for this would have been to create separate queries and join the data together in Excel. The problem with this is that there exists no common field that would make sense as for a selection criterion. If the selection criterion is different in different queries, there is the danger of combining false data together, which would eventually result with distorted data. 
    So I was wondering, could anyone briefly tell me if SAP Business Warehouse reporting would solve these problems? And what other benefits would it provide compared with the SAP Query? I'd urgently need to know if it would be a beneficial investment for the company, since I haven't found solutions for the problems occurred in the creation of reports.
    Thank you in advance for you help!
    Maria

    The answers are yes - and thousands of companies have gone down this route
    Puttingin BW is a strategic aim of the comapny and not to be thought about and discussed in a BI forum such as this
    The costs of implementation and hardware will no doubt make your eyes water.
    To be quite honest SAP BI is a "no brainer" as most of the new e-SOA and new R3 modules reply on BW for their reporting needs

  • Use a single variable value to compare with 2 characteristics

    Hi guys
        I need some advice on how to use a single variable value to compare with 2 characteristics in a Infocube.
    eg : I hv 2 characteristics in Infocube
           Launch date  &  Closing Date
       Now I want to display report where the variable date (inputted by user) is equal to Launch Date and Closing Date.
        with regards

    Bobby,
    if I right understood your situation, you have an input variable ZINPUT (related to a date 'A') and 2 others dates (yours Launch and Closing dates, 'B' and 'C').
    You want to display only the rows where A(user input)=B=C.
    Now you have to create 2 new variables (called ZB and ZC, related to B and C dates) NOT marked as 'ready for input' and set to 'mandatory variable entry'.
    Call Transaction CMOD for the definition of the customer exit (if not already existing!).
    Create a new project, maintain the short text, and assign a development class.
    Goto Enhancements Assignments and assign RSR00001. Press the button components to continue.
    Double-click on EXIT_SAPLRRS0_001. For documentation place the cursor on RSR00001 and use the menu Goto -> Display documentation. 
    Then double-click on ZXRSRU01. If the include doesn’t exist you have to create it; assign a development class and a transport request.
    Enter the coding:
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    CASE I_VNAM.
    WHEN 'ZB'.
    (and you have to repeate the same code also for the variable 'ZC' !)
    IF I_STEP = 2.
    READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WITH KEY vnam = 'ZINPUT'.
    if sy-subrc = 0.
    L_S_RANGE-LOW  = LOC_VAR_RANGE-LOW.
    endif.
    L_S_RANGE-sign = 'I'.
    L_S_RANGE-opt = 'EQ'.
    append L_S_RANGE to e_t_range.
    ENDIF.
    ENDCASE.
    Save and activate the coding and the project.
    Now go to your query and use these two new variables to restrict B and C....et voilà !!!
    Let me know if you need more help (and please assign points !!! be generous !!!)
    Bye,
    Roberto

  • LightScribe SuperMulti DVD±R/RW with Double Layer Support is no longer able to read all lightscribe discs(Blank or Containing Data)

    Hi,
    The product Name of my computer is: HP Pavilion dv6-6093ex Entertainment
    Notebook PC support
    The number of my computer is : LM610EA#A2N.
    Could anyone please at this splendid forum take some of their precious time
    out to really reply my questions and solve my problems?
    FIRST OF ALL:
    My HP Pavilion Laptop is about 3 years old.
    My
    sister's Dell Inspiron laptop is 3 years old.
    My HP laptop is well-cared, as opposed to my sister's Inspiron Dell laptop, which is always thrown in dust without caring at all. Also, its battery is always inserted even when it is fully charged while the laptop is plugged in to the main power supply. 
    However, my laptop is either used on only battery, or on plugin. Also, it is kept from the dust. But, I really found that the battery of the Dell laptop still lasts about three and half hours, and there is no problem cooling fan is not properly properly.
    I only remember one thing differently done on my laptop battery which is I charged it fully, then I stored it without using it for about four months, then when I reused it, I found it got worse over time. I.e. first time of using it after storing,I found
    it empty, then I charged it again fully, however, then it lasted about 2 hours, then 1 and half hours, next an hour, now it is only lasting about 20 minutes without performance. If there is high performance, then
    the computer shuts down suddenly.
    My problem is follows:::
    First: Whenever I inserted any Containing Data OR  Data CD/DVD-RLightScribe discs, I found that HP optical driver was
    unable to read them. When clicking on the optical disc drive 'double-click' while disc was inserted, then I found that disc opened as this way(NOTE: With a CD/DVD player is grayed out)
    I  was told 'I suspect the culprit might be hardware and lightscribe dive might be
    corrupt. Please sent it to service center to check. In addition, this thread could be as a reference:
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-hardware/media-in-cddvd-drive-is-not-readable/794fe26a-7e47-45c4-a50b-0af2ed53f75b'
    Since no one replied to me at HP forums, although my HP laptop is one of their products, I had to post my problem here to know if my driver is corrupted and needs to be replaced or not.
    Blank Or Used(containg data) CD/ DVD ±R/RW lightscirbe is unable to be read by optical drive
    When clicking on drive 'duble-click', I found it opens  like a USB FlashDrive or With a CD,DVD player, however,
    : Bare in mind that 'with CD/DVD Player'
    is grayed out)
    Not Blank(containing data) CD/ DVD ±R/RW NON -Lightscirbe disc opens normal:
    Blank CD/ DVD ±R/RW NON-lightscirbe opens normal(Opens like
    a USB FlashDrive or With a CD,DVD)::
    My LightScribe System Software version is:
    I've tried installed the latest version of lightscribe software, then I run
    the diagnostic utility, however, the problem still persists.
    My HP CD/DVD DVDآ±R/RW specs are::
    Optical Drives
    hp CDDVDW TS-L633R
    Media Type DVD Writer
    Name hp
    CDDVDW TS-L633R
    Availability Running/Full Power
    Capabilities Random
    Access, Supports Writing, Supports Removable Media
    Read capabilities CD-R,
    CD-RW, CD-ROM, DVD-RAM, DVD-ROM, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD-R DL, DVD-RW
    DL, DVD+R DL
    Write capabilities CD-R, CD-RW, DVD-RAM, DVD-R, DVD-RW, DVD+R,
    DVD+RW, DVD-R DL, DVD+R DL
    Config Manager Error Code Device is working
    properly
    Config Manager User Config FALSE
    Drive E:
    Media Loaded
    FALSE
    SCSI Bus 0
    SCSI Logical Unit 0
    SCSI Port 0
    SCSI Target Id
    1
    Status OK
    Trying to solve the problem,
    I have done these steps in order::
    I tried checking with dignostic ulitiy:
    I have tried Advanced View , this is the file of output data ofdignostic utlity
    LightScribe System Software Settings:
    SOFTWARE\LightScribe\MessageDir C:\Program Files (x86)\Common Files\LightScribe\
    SOFTWARE\LightScribe\LSPrintDialog C:\Program Files (x86)\Common Files\LightScribe\LSPrintDialog.exe
    SOFTWARE\LightScribe\LSPrintingDialog C:\Program Files (x86)\Common Files\LightScribe\LSPrintingDialog.exe
    SOFTWARE\LightScribe\LsPrintLauncher C:\Program Files (x86)\Common Files\LightScribe\LSPrintLauncher.dll
    SOFTWARE\LightScribe\ResourceDir C:\Program Files (x86)\Common Files\LightScribe\res
    SOFTWARE\LightScribe\LSPrintAPI C:\Program Files (x86)\Common Files\LightScribe\LSPrintAPI.dll
    SOFTWARE\LightScribe\Update\UpdateShellCommand http://www.lightscribe.com/go/downloads/windows
    SOFTWARE\LightScribe\Update\PreviousVersion 1.18.20.1
    SOFTWARE\LightScribe\Update\CurrentVersion 1.18.27.10
    SOFTWARE\LightScribe\Update\TrailingVersion
    SYSTEM\CurrentControlSet\Services\LightScribeService\Type 16
    SYSTEM\CurrentControlSet\Services\LightScribeService\Start 2
    SYSTEM\CurrentControlSet\Services\LightScribeService\ErrorControl 0
    SYSTEM\CurrentControlSet\Services\LightScribeService\
    SYSTEM\CurrentControlSet\Services\LightScribeService\DisplayName LightScribeService Direct Disc Labeling Service
    SYSTEM\CurrentControlSet\Services\LightScribeService\ObjectName LocalSystem
    SYSTEM\CurrentControlSet\Services\LightScribeService\Description Used by the LightScribe software components to support 3rd party disc labeling applications using the LightScribe COM Application Programming Interface (LSCAPI). This service needs to run for LightScribe direct disc labeling to work.
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\TypesSupported 7
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\0 IDE\CdRomhp_CDDVDW_TS-L633R______________________0300____\4&334f7860&0&0.1.0
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\Count 2
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\NextInstance 2
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\1 SCSI\CdRom&Ven_ELBY&Prod_CLONEDRIVE&Rev_1.4\1&2afd7d61&0&000000
    SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\allocatecdroms 0
    SYSTEM\CurrentControlSet\Services\CDRom\autorun 1
    SOFTWARE\INTEL\Intel Application Accelerator Not detected
    Drives and Media:
    Drive 0 : hp CDDVDW TS-L633R 0300 219 (E:), Media Imaging Parameter : 114
    I tried running the below command line to fix potential disk issue 'Chkdsk/r /f'
    I cleaned the drive, discs, and so on.
    I have uninstalled the all third-party data recording software.
    I have uninstalled the Cyber DVD suite, lightscribe system software
    which came pre-installed with my HP pavilion Notebook.
    I have recovered my system from the HP Factory Recovery discs.
    I have tried opening all those LightScibe discs not opening on my HP optical drive, on a Dell optical drive, and all of them were opened well, although Dell optical drive did not have a lightscribe feature at all., nor  third party disc recording software.
    However, the problem is still with opening the discs LIGHT-SCRIBE.
    Thus, my questions are:
    How to determine if the drive is corrupted and needs to be replaced with another one.
    I think there something needed to be done on the BIOS Of my HP laptop[[[A similar problems happened on my Desktop computer's optical drive which is as follows (ALL discs are opened as empty by Optical Drive of My Desktop Computer) ---while
    my optical drive of my desktop was connected to the
    primary slave IDE, and the HDD was connected to the primary master IDE, the optical drive and hard disk are functioning well. However, I remember that while burning an image with Nero essential V: 5, something went wrong, and
    then the Optical Drive of My Desktop Computer (HL-DT-ST DVD-RAM GH22NP20) became NOTrecognised/Installed on
    BIOS, although it was still shown on the device manager as a recognised device. Also, it was listed on my computer, however, when entering a disc(blank or with data) into the drive, I found it was not recognised, and it opened empty(no files
    at it), although it contains data. Thus, I decided to boot to BIOS, and clicked on 'Autodetection for IDE', then I found that only HDD was still shown as installed on BIOS.  However, the optical drive was not. Th I tried clicking on it on BIOS and then
    clicking on 'enter' to try to let the device be re-recognized. However, that
    made no difference. I had to take part my computer ,and then reconnected the optical drive onto thesecondary slave IDE , and let HDD connected to the same
    primary master IDE. Then, I found that the problem solved and all discs were read normally. Aslo, optical drive became installed on BIOS.
    What is meant with with double Layer Support.
    How much does it cost?
    A man should convert his anger and sadness into strength to continue living in this life.

    Did you try unsinatalling LightScribe application then checking the status ? 
    This is probably related to the faulty hardware or the application ( LightScribe
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.
    Could you please really concentrate with me, and really reply to me to finish this problem pending.
    If you had had a look again at my first post, you would have seen that I said that I have done some things, among of which is: I have uninstalled the Cyber DVD suite, lightscribe system software
    which came pre-installed with my HP pavilion Notebook.
    Yes, you're right the two threads below are concerned about one issue.
    https://social.technet.microsoft.com/Forums/en-US/w7itpromedia/thread/5c1aa5e8-9728-492b-a5c3-387f29ee4b6e/#d6f63628-29a3-4adf-b33f-03b33c138910
    https://social.technet.microsoft.com/Forums/windows/en-US/683997ff-1004-4579-b69d-5e982746c917/lightscribe-supermulti-dvdrrw-with-double-layer-support-is-no-longer-able-to-read-all-lightscribe?forum=w7itpromedia
    However, this thread contains more precise details and screen shots about the problem. I was not able to understand whether all lightscribs were not unable to be read or not. However, I now recognized that, and I recognized that only all LightScribe(empty
    or used) discs are unable to be read. furthermore, that other thread got far too longer to be followed.
    Moreover, I would like you to take some time out to answer my problem about Lighstscribe discs since I am going to purchase 'A battery, Cooling Fan' From the HP agent in Yemen, which is far away from me about 1000 Km. Thus, If my optical disc drive was corrupted
    as well, then I would be requesting the 'optical disc  drive' as well from the HP along with 'Battery, Cooling Fan' .
    A man should convert his anger and sadness into strength to continue living in this life.

  • Error ORA-01426: numeric overflow when Creating table with double data type

    Hi,
    I am using ODP.NET to create a table with data from SQL to Oracle. The problem is with double data type fields that is equivalent to FLOAT(49) in Oracle. My syntax is:
    CREATE TABLE SCOTT.ALLTYPES
    F1 NUMBER(10),
    F10 DATE,
    F2 NUMBER(10),
    F3 NUMBER(5),
    F4 NUMBER(3),
    F5 FLOAT(23),
    F6 FLOAT(49),
    F7 NUMBER (38,5),
    F8 NVARCHAR2(500),
    F9 NVARCHAR2(500)
    Th error is with field F6 but I am not sure what is the correct type equivalent to double in SQL.
    I woul appreciate if anyone can help me with this problem.
    Sunny

    Does this simple test work for you?
    In database:
    create table float_test
      f1 float(49)
    );C# code:
    using System;
    using System.Data;
    using System.Text;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace FloatTest
      /// <summary>
      /// Summary description for Class1.
      /// </summary>
      class Class1
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
          // connect to local db using o/s authenticated account
          OracleConnection con = new OracleConnection("User Id=/");
          con.Open();
          // will hold the value to insert
          StringBuilder sbValue = new StringBuilder();
          // create a string of 49 number 9's
          for (int i = 0; i < 49; i++)
            sbValue.Append("9");
          // command object to perform the insert
          OracleCommand cmd = con.CreateCommand();
          cmd.CommandText = "insert into float_test values (:1)";
          // bind variable for the value to be inserted
          OracleParameter p_value = new OracleParameter();
          p_value.OracleDbType = OracleDbType.Double;
          p_value.Value = Convert.ToDouble(sbValue.ToString());
          // add parameter to collection
          cmd.Parameters.Add(p_value);
          // execute the insert operation
          cmd.ExecuteNonQuery();
          // clean up
          p_value.Dispose();
          cmd.Dispose();
          con.Dispose();
    }SQL*Plus after executing above code:
    SQL> select * from float_test;
            F1
    1.0000E+49
    1 row selected.- Mark

  • Drawing with doubles

    I have a file containing x,y coordinates as doubles. All the draw commands that I've seen in Graphics 2D only take int values as arguments. How do I draw using doubles???
    Thanks

    You can't. You'll have to use an explicit cast in your draw methods.
    g2D.drawImage(im, (int)x, (int)y, comp)Ahem.
    There are lots of places in Java2D where you can use doubles or at least floats:
    AffineTransform And related methods in Graphics2D:
    rotate(double theta)
    rotate(double theta, double x, double y)
    scale(double sx, double sy)
    shear(double shx, double shy)
    translate(double tx, double ty)
    Many shapes that you can draw or fill are created with doubles or floats:
    Line2D.Double
    Rectangle2D.Double
    Ellipse2D.Double
    Arc2D.Double
    QuadCurve2D.Double
    CubicCurve2D.Double
    GeneralPath (uses floats, only)

  • SAP XI comparative with Cordys & TIBCO

    Hi gurus,
    Can anybody help me to find how SAP XI is better than Cordys or TIBCO .i.e. comparision between (SAP PI,Cordys,TIBCO)
    regards,

    HI
    Sap XI:
           XI is well suited for connecting SAP systems with each other and with non-SAP. SAP XI provides an integrated workflow engine that allows defining adapters to non-XML protocols and mappings to convert data content from source to target format.
    XI comes handy particularly incase of SAP - Non SAP interfaces where you can import standard integration content. Also XI has got sophisticated open standard adapter framework which is very easy to implement and custom logic can be implemented using Adapter module programming.
    Advantages
    u2022Monitoring is better than any other middleware product. It offers exhaustive monitoring features like message, performance, component monitoring etc, all of which can be used to track and rectify the errors. It follows a hub and spoke model.
    u2022When you need to integrate with an SAP system XI has an advantage in supporting various SAP components and so on.
    u2022Process functionalities inside XI to modify content in the communication channel on own defined rules for business purposes.
    u2022Mappings and adapters are good as comparable with any other middleware product.
    u2022Synchronous & Asynchronous communication is possible.
      Dis-Advantages
    u2022Web methods are particularly good if u have B2B kind of communication with their Trading Partners product.
    u2022XI is lacking full-fledged Message Queue compared to other established Middleware products.
    u2022It lacks in ability to process huge messages but SAP is working on that.
    u2022It does not have a messaging layer exposed by APIs like IBM MQ-Series.
    u2022It is not comparable to Tibco in terms of speed.
    u2022SAP relies on other vendors except for a few adapters.
    TIBCO:     
           TIBCO is described as having the most advanced BPM features overall, spanning both integration-centric and human-centric features due to the company's aggressive strategy to sustain competitive advantage by adding leading-edge features, whether via internal development or strategic acquisition.
    For the integration of custom applications into the e-business infrastructure, TIBCO makes available a comprehensive Software Development Kit that enables enterprises to build their own adapters.
    Advantages
    u2022Tibco has many adapters that are built by their own.
    u2022Tibco simple and productive User Interface is much more matured than XI.
    u2022Tibco does publish/subscribe very well. Available messaging types include request/reply, publish/subscribe and publish/reply interactions.
    u2022Improves overall system performance by eliminating repetitive batch requests to packaged application systems.
    u2022Lowers cost-of-ownership through general n-way rather than point-to-point integration.
    u2022Simplifies administration with data transparency provided by subject-based naming.
    u2022Enhances networked applications based on component or object development models.
    u2022Choice of message delivery service levels for optimal resource utilization.
    Dis-Advantages
    u2022Tibco does not have asynchronous SOAP/HTTP.
    u2022Concept of integration in terms of semantics and steps is a little more complex.
    u2022When compared in terms of monitoring, message level trace, message resubmission, pipelining, components monitoring Tibco is far behind to XI.
    cheers

  • Can j2me draw line with double values.

    Hi,
    Can any body know how to darw line in j2me with double values.
    I don't want use draw Line with int.
    Shall i use svg or j2me has solution.
    Thanks and regards,
    Rakesh.

    not possible
    graphics.drawLine(float,float,float,float);...there's no such method in MIDP API: [click here for javadoc of Graphics class methods|http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/lcdui/Graphics.html#drawLine(int,%20int,%20int,%20int)]

  • Help needed with doubles and integers

    I just want to start telling all you that you have been a big help to me the last couple of months. Now, for my issue. I'm having a problem doing some work with doubles and integers. Below is the code I've tried. But, I keep getting mismatch types. I need num3 to fill in a JTextField by the end with the answer for the calc. Num2 is fill in from a JTextField with a double.
    Int num1 = 0, num4 = 0, num3 = 0;
    double num2 = 0, totint = 0;
    for(count = 0; num4 < count; count++)
    totint = (1 + num2);
    System.out.println(totint);
    num3 = double (num1 * totint);
    String k = Integer.toString(num3);
    tf3.setText(k); (This is a JTextField)
    Test data
    num1 = 10000
    num2 = 3.4
    num4 = 4
    num3 = the value from the calc

    First of all, your for loop is never going to run.
    for (count = 0; num4<count; count++)
    totint = (1 + num2);
    System.out.println(totint);
    num4 = 4 and will not be less than count, so the for loop will not be executed.
    Second, what exactly are you trying to accomplish here. The way you have your code set up, the for loop (if it were to execute) would print out 4.4 each time it passes, then do the calculation. You may need to rethink your objective.

  • Can I use comparator in Double?like , ,=?

    I am confused because there is an error saying that can't convert java.lang.Double to double....

    This is the error
    /chap1/trans1.jsp:15: Wrong number of arguments in method.
           Double conv=Double.doubleValue("number");
                                         ^
    /chap1/trans1.jsp:23: Incompatible type for declaration. Can't convert
    double to java.lang.Double.
         Double y= pro.checkTotal();
                ^
    /chap1/trans1.jsp:24: Incompatible type for >. Can't convert java.lang.Double
    to int.
        if(conv>y)
               ^
    3 errors, 1 warningMy code:
    this is one class from my java beans:
              public double checkTotal() throws Exception {
                   try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   String URL = "jdbc:odbc:***";
                   Connection conn = DriverManager.getConnection(URL,"root","yes");     
                   Statement stmt = conn.createStatement();     
                   ResultSet ra = stmt.executeQuery("Select sum(new_shares) from buy WHERE stock_code='"+number+"' AND name_broker='"+broked+"'");
                   ra.next();
                   tshare= ra.getDouble(1);
                   System.out.print(tshare);
                   conn.close();
                   stmt.close();
                        catch (Exception e) {
                        System.out.println(e.getMessage());
                   return tshare;
    }This is the jsp file that is comparing the Double value of checkTotal
    <jsp:useBean id="pro" class="process"/>
    <jsp:setProperty name="pro" property="*"/>
      <% String ops = request.getParameter("type");%>
      <% String code = request.getParameter("coding");%>
      <% String broker = request.getParameter("broked");%>
      <% //String waa= request.getParameter("number");%>
      <% Double conv=Double.doubleValue("number");%>
    <%
    if(ops.equals("buy")){
    pro.addTransaction();
    else if(ops.equals("sell")){
         Double y= pro.checkTotal();
        if(conv>y)
         %>
              <center><strong></strong><FONT COLOR=RED SIZE=8>YOUR DONT HAVE ENOUGH <b><strike><%=code%></strike></b> STOCKS TO SELL FOR YOUR BROKER <b><strike><%=broker%></strike></b></strong></center>
         <%}
         else
              pro.addSell();
              pro.processSell();
    %>null

  • Compare of double after division

    HI!
    Plese see attached VI. I divide two doubles and compare the result with another double. This works for low numbers but if the result of the division is for example 1000.00 (4.5/4.5e-3)the greater as function (compared with 1000.00) provides true at the output. Has it something to do with the internal rounding, representation of the doubles? Or how LV performs the division?
    How can I get the right response from the greater as function?
    ANDY
    Attachments:
    greater.vi ‏20 KB

    It is the conversion of floating point numbers to binary representation that computers understand and the problem is present in all programming languages. Comparison of floating point numbers is something that should be avoided. There is a discussion of this on the LabVIEW FAQ. Select the Front Panel subforum and the "Why does my output show -0.99 .." and "So how do I .." topics.

  • How does my MacPro compare with new iMacs spec wise?

    I'm thinking of upgrading to a new iMac, I have a MacPro that is about 5-yrs old. Just curious, how do the specs on my MacPro compare with the specs available on the new iMacs? Will I notice a big difference in performance, OR are the upgrade processors and graphics card only going to result in minor performance increases?
    Model Name:   Mac Pro
    Model Identifier:     MacPro1,1
    Processor Name:       Dual-Core Intel Xeon
    Processor Speed:      3 GHz
    Number Of Processors: 2
    Total Number Of Cores:        4
    L2 Cache (per processor):     4 MB
    Memory:       3 GB
    Bus Speed:    1.33 GHz
    Thanks!

    I *think* you'll see a speed increase. You'll have more ram to start with, a faster bus, a faster graphics card, (i think) and on top of all of that a nicer screen, you'll be able to sell the mac pro to offset the cost, a bigger hard drive(probably) a new warranty.....and on and on. See why I say it's not so cut and dried?

Maybe you are looking for