Multiply long by double and get long result?

Hi is there a way I can multiply a Long value by a Double value and get a Long value result? Easy way?

Hi is there a way I can multiply a Long value by a
Double value and get a Long value result? Easy way?that should be possible but you may lose precision.
please consult to a java book.
this is a standard casting problem.
thanks

Similar Messages

  • How do I get iTunes 11 to work as the old iTunes did in this respect: after playing a song in one playlist, I click on another playlist, highlight a song, press play, and get the result of that song playing & that playlist continuing?

       How do I get iTunes 11 to work as the old iTunes did in this respect: after playing a song in one playlist, I click on another playlist, highlight a song, press play, and get the result of that song playing & that playlist continuing?  As it goes now, one clicks on the song in the new playlist where the arrow is and then chooses 'Play Song Next.'  So, it plays next, but then the song after that is back in the old playlist.  I want to use iTunes smoothly without the extra clicks I've had to do in order to get the playlist to continue.  This is music for background while I play the violin at restaurants, and extra clicks and hassle is quite unappreciated, especailly since it worked fine in the previous iTunes.
       Thanks.

    At the top of the playlist where it shows the playlist title and the number of songs, there are two icons. Click the "play" triangle to add the entire playlist to "Up Next", or the "shuffle" symbol to do the same thing but in random order. But the currently playing track will stop playing, and all the songs in "Up Next" will be removed (replaced by the ones from this playlist).
    If you hold down the "option" key while clicking those icons, the currently playing song will continue playing, and the new playlist will be added to "Up Next" (above the songs that were already there).

  • Ipod Nano 5th GenerationWindows xp.  My nano no longer opens automatically with file options menu.  Trying to import priceless videos of my daughter  from ipod to computer so I run it and get these results:  My computer/ipod/dcim/000apple and 75 IMG.DAT

    Nano 5th GenerationWindows xp. 
    My nano no longer opens automatically with file options menu when I connect it to my lap top.  Trying to import priceless videos of my daughter  from ipod to computer, However,  when I run it I get these results: I click onto  My computer/ipod/dcim/000apple and 75 IMG.DAT files come up.  Now I am almost sure those files shouldnt be on there.  If my memory serves me corrrectly the dcim folder is where one should be able to find video recording made with their iopd?If there is a way to import these videos without having to reset my ipod and lose precious videos please please let me know? HELLLLLLP

    Try: http://discussions.apple.com/thread.jspa?threadID=743515&tstart=15

  • Execute command on UNIX and get the result

    I want to write a Java program, which can execute a shell script in UNIX and get back the result. Any idea?

    Check these two tips:
    How to execute a command from code
    http://www.java-tips.org/java-se-tips/java.lang/how-to-execute-a-command-from-code.html
    How to read output from a Command execution
    http://www.java-tips.org/java-se-tips/java.lang/how-to-read-output-from-a-command-execution.html

  • How can I call the jFreeChart to plot graph and get the result in Servlet?

    I want to use jFreeChart to plot time series graph, and then output the result in Servlet. How can I call the jFreeChart to plot graph and get back the result? Any source code for example? Thanks a lot!!

    Dave,
    ServletDemo1 and others were not in the distribution that I got (jfreechart-0.9.4). I found them under the premium demos somewhere in com/refinery/chart/demo/premium, but could not compile. They're complaining, among other things, about missing classes/packages com.refinery.date.SerialDate and com.refinery.ui. Am I using a wrong version of jfreechart?
    Thanks,
    -Alla
    There is a very simple servlet demo in the JFreeChart
    distribution:
    src/com/jrefinery/chart/demo/ServletDemo1.java
    This simply sends back an image to the browser.
    A second demo, which embeds the chart in an HTML page
    is:
    src/com/jrefinery/chart/demo/ServletDemo2.java
    src/com/jrefinery/chart/demo/ServletDemo2ChartGenerator
    java
    ...includes a time series chart as one of three
    options.
    Regards,
    Dave Gilbert
    JFreeChart Project Leader
    http://www.object-refinery.com/jfreechart/index.html

  • How to create the Vote Form and Get the Result

    I have an assignment to create a website for voting and show the result online.  Anyone can tell me the steps to build such website???

    This tutorial uses jQuery and PHP
    http://code.tutsplus.com/tutorials/creating-a-dynamic-poll-with-jquery-and-php--net-57
    Nancy O.

  • I want to put a number in a cell and tell it to times by 2 and get the result as a total further along. Sorry couldn't find the answer in any tutorial.

    I want to put a number in a cell and tell it to times by 2 to give the result i another cell?  Sorry couldn't find the answer in any tutorial.

    Hi Caakie,
    Sounds like tou need some basic information.
    The best advice I can give someone new to Numbers (and to spreadsheets in general) is to download and read at least the first four chapters of the Numbers '09 User Guide. You'll find a download link in the Help menu in Numbers '09.
    When you want to start using more complicated formulas, you'll also need the iWork Formulas and Functions User Guide, available from the same menu.
    Regarding your question: "Can you just give me the string for B which is just add and C which is *2."
    What is to be added in "B"? What is to be multiplied by 2 in "C"?
    =2+3 will return the result 5.
    =A+B will return the sum of the numbers in column A and column B in the same row as the cell containing the formula. If either A or B contains a non-numerical value, the formula will return an error message.
    =3*2 will return the result 6.
    =A*B will return the product of the numbers in column A and column B in the same row as the cell containing the formula. If either A or B contains a non-numerical value, the formula will return an error message.
    Regards,
    Barry

  • ITunes Truly Epitomizes Definition of Insanity since can't download free apps due to Technical Difficulties and iTunes says to try again later and get same results

    iTunes truly epitmizes the Definition of Insanity.   I can't even download free apps.  iTunes says they are having technical difficulties.  What an understatement.  iTunes makes everyone go crazy by saying to try again later.  When we try again, same result. 

    Ha!
    I've been saying that iTunes is a "@#8*!^8 crazy *#!" ever since I reinstalled it, LOL!
    I had that thing, just about *duct-taped and stuffed between the attic rafters* for the past 3 years,
    and never missed it.
    Then...well...I told my husband, that I must've incurred an Aneurysm during sleep...because for some reason, the %*@$! has now reappeared, and is just as OCD and Hyper, as it was when I had it
    *locked up*!
    But my husband keeps swearing that I re-downloaded it, because I missed hearing my favorite
    pod-shows.
    Anyhoo...since, I've re-inflated it, I've only used it for 1/2 an evening, before I gave a yell, and pulled the plug on it, yet again!
    A.n.y.t.i.m.e I tried to do ANYTHING, that crazy &#tc+ was right there...and I swear that I could hear a hyper never-pausing-for-breath 'voice', which seemed to shrill:
                        "Can I do it, huh, huh? Can I open, huh? huh? I wanna do it, I wanna I wanna!!
                         "Prrlleaaase! I just wanna open it!! You know I can!  So can I, huh huh!!"
    So it's *locked-up under my porch crawl space* until....well....until... (0;
    I actually just came on here to say that, during the 3 or so hours that I attempted to reason with that Demento, I was never able to access the iTunes Store, either.
                             "I can't access the iTunes Store.
                              It must be busy, so I'll try again later."
    And while it was trying to convince of that, I managed to get in and out of the iTunes Store, about 3 separate times...and had managed to listen and download about 5 or so pods...but it just kept repeating that same line.
    Like its dose of Lithium had worn off, and now it was just about ready to show me its
    *Alvin the Chipmunk Alter-Persona*...
    But it never got the chance.
    I haven't heard a peep out if since, LOL!
    I figure there's enough to keep me occupied on here...so if doesn't behave itself soon....
    Yeah...you KNOW what I'm talkin' bout, LOL!
    Well, I gots to go now, but you have yourself, a fabulous weekend!
         ~Macaholic93

  • Divide and get the result with decimals exactly.

    Hello. I've tried to
    double d;
    d=9/5;
    this will give the result d=1.0
    why dont i get 1.8???? thats the correct when i divide 9 with 5.
    sincerely h

    This problem came up earlier.
    http://forum.java.sun.com/thread.jspa?threadID=5239481&tstart=0
    Integer divided by Integer results in an integer.
    Then, in turn, is casted to a double.

  • Using SUBMIT and getting the results back

    Hi,
    I need to call a BAPI on-line (not in the background) using a different User ID as the one that's logged in.  I read from the threads the use of SUBMIT ...VIA JOB. 
    CALL FUNTION 'OPEN JOB'...
    SUBMIT zsubmitted_program
           VIA JOB     l_jobname
               NUMBER  l_jobcount
               USER    i_user       ====> changed User ID
           TO SAP-SPOOL WITHOUT SPOOL DYNPRO
               SPOOL PARAMETERS ls_params
                  AND RETURN.
    CALL FUNTION 'JOB_CLOSE'...
    Questions:
    1. How would I know that the job is finished?
    2. How do I retrieve the messages returned by the BAPI so I can present it on the screen?
    Many thanks,
    Huntr

    Hi,
    I will be wrapping BAPI_MATERIAL_SAVEDATA into a Z program to run it and use the method mentioned above.  I need to know by that method when the batch job is done and how to retrieve the results.
    Is there a function module to retrieve the job status or log?
    Also I think if i write the bapi results in the spool, I should be able to retrieve the spool.  What is the function module to do so?
    Regards,
    Huntr

  • Can you create a test online and get the results filter in the report tab?

    Im brand new to this software and i had a big concern about it.
    This is a great tool to create surveys and forms to fill out but i was wondering if you can create a quiz.
    By a quiz i mean that instead of sending me back the data the user click in the multiple choice is it
    possible for me to get instead if they got it right or wrong.
    I want to retun if they got it right a boolean variable (true or false)
         logic ex)
         if (answer == true)
             return "correct"
         else
              return" "incorrect"

    Hi;
    You can certainly create a Quiz using FormsCentral but there is nothing built in to "grade" the quiz and no integration with any grading systems like flubaroo.
    You might be able to use "Formulas" on the "View Response" tab to identify correct/incorrect answers. 
    This describes a bit about how to use Formulas (they can be done in a column as well as a row): http://acrobatusers.com/tutorials/how-to-work-with-formulas-in-formscentral
    This is a list of the forumulas available in FormsCentral: http://helpx.adobe.com/acrobat-com/formscentral/help/formula-syntax-built-in-functions.htm l
    Thanks,
    Josh

  • Remote actionscript call and get bitmapdata result

    Hello,
    I'm using flash aplication to generate (in real time) complecated Bitmap  / BitmapData, and then I would like to give result to web user. How to  run this process without putting whole application to swf file  (which  can be decompiled) over the internet, but giving to user only result  image?
    How to make flash aplication server-side? Can it be done using only adobe technology?

    data: bdc_itab type table of bdcdata.
    set parameter id 'MAT' field '1300318301Z' .
    set parameter id 'WRK' field 'NP01'.
    set parameter id 'KRT' field 'ZPC2'.
    bdc_itab-dynpro = '300'.
    bdc_tab-dynbegin = 'X'.
    BDC_itab-progname = (give the dialog program name).
    append bdc_itab.
    call transaction 'CK86_99' using bdc_itab AND SKIP FIRST SCREEN  mode 'N'.

  • Syncing devices contacts with i cloud and getting different results

    i have 2 iphones and an imac and i am syncing contacts with i cloud and i am getting 3 different counts of contacts on each device. any thoughts on what goes wrong?

    At this point I recommend you try deleting, then re-creating the iCloud account on your phone.  Sometimes this will restart difficult syncing problems.  You won't lose any data by doing this.
    Start by saving any photo stream photos on your phone that you want to keep to the camera roll (unless they are already there).  To do this, open your my photo stream album, tap Edit, tap the photos, tap Share, tap Save to Camera Roll.
    Then go to Settings>iCloud, tap Delete Account, and choose Delete from My iPhone when prompted, then after a minute or so, sign back in.  This deletes the account and your iCloud data from your phone, but not from iCloud.  Your data will reappear on your phone when you sign back in, although there may be a slight delay as it redownloads.  Then check your contact groups and see if this fixed things.  If so, repeat this process on your iPad.

  • Trying to buy music for de-stressing and getting disastrous results

    Hello to someone who can help,
    I have been trying to access the iTunes store for quite some time now and I have been met with the screen opening the store and then having this white, blank screen greet me and take over the iTunes store screen and not be able to get any music for buying (even when I use the search bar). I was wondering if anyone had a brilliant theory and solution to this crisis (as all of mine are completely prepoterous). Thank you

    Yes, because you only tried one online music store and then you got all stressed when you encountered a problem.
    To de-stress yourself, buy some tracks at another online music download store, such as Amazon.com.
    You can buy MP3s from any online source and add them to your iTunes library.

  • How to suppy and get the results from a procedure dynamically.

    Hi all,
    I have a simple procedure, which should prompt five times for
    values and display the values dynamically. but it is not
    behaving like that. while compilation it is asking for the
    value, once i enter the value , it is prompted that procedure
    created. while executing, it is diplaying all five same values
    what i have entered at compilation time. Please check out. Here
    is the code.
    create or replace procedure test is
    t_var integer;
    t_count integer := 0;
    begin
    loop
    t_var := &r;
    dbms_output.put_line('The value is: ' || t_var);
    If t_count = 5 Then
         Exit;
    End If;
    t_count := t_count + 1;
    end loop;
    End;
    Regards,
    G. Rajakumar.

    See now what happens is
    When u use &variable in sql or plsql it tries to substitute with
    the value held by that variable. If it dosent find that value in
    that session then it prompts for one. (that is why ur proc asks
    for value only once)
    What happens in your proc is
    fisrt time it will ask for &r value, but subsequent i will not
    ask because when second time it tries to do &r in your prog it
    finds the value that u had entered above. Also as u said that
    prog takes the input and dosent show anything this is cos sql
    engine takes the value and compiles the proc it actucally shows
    when u run it. U can have look at the below executed program
    In this once u have eneterd say value 199 then it display 199
    for those many number of times. I hope this answers your
    question.
    SQL> ed
    Wrote file afiedt.buf
    1 create or replace procedure test is
    2 t_var integer;
    3 t_count integer := 0;
    4 begin
    5 loop
    6 t_var := &r;
    7 dbms_output.put_line('The value is: ' || t_var);
    8 If t_count = 5 Then
    9 Exit;
    10 End If;
    11 t_count := t_count + 1;
    12 end loop;
    13* End;
    SQL> /
    Enter value for r: 12
    old 6: t_var := &r;
    new 6: t_var := 12;
    Procedure created.
    SQL> exec test
    The value is: 12
    The value is: 12
    The value is: 12
    The value is: 12
    The value is: 12
    The value is: 12
    PL/SQL procedure successfully completed.
    SQL>

Maybe you are looking for