Add 0.2 To 1.4 - not so simple ?

Tell me why this little stuff
class bla {
public static void main(String args[]) {
double liczba;
liczba = 0;
liczba = 1.4;
liczba += 0.2;
System.out.println(String.valueOf(liczba));
prints out 1.599999999 instead of 1.6

It's correct. You don't understand how floating point arithmetic works:
http://docs.sun.com/source/806-3568/ncg_goldberg.html
MOD

Similar Messages

  • Cannot uninstall I tunes. In control panel add and remove programs it will not give me the option to remove any of the I tunes. In program files it tells me access denied to remove any of the related items. I have tried using the removal methods from i tu

    My i tunes will not work at all. I have tried all the steps given to remove my I tunes player but in my control panel, add and remove programs it does not give me an option to remove any of the apple/ I tunes. I tried to go to program files and remove all the files but access is denied. This all started about 1 1/2 years ago and with every i tunes update i got more and more errors or problems until it stopped working. At one time i could remove and reinstall i tunes to try to fix it but now i cannot do anything. I believe one of the last  was i could not open i tune because it was being used or was on another network, not 100% sure its been so long and frustrating I quit trying 6 months ago. Hopefully someones got some help !!!
    Thanks I appreciate your time; Philip

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Installed Adobe dlm add-on and now Firfox will not open. I see the process starting in Task Manager but no window opens. Unistalled Firefox then re-installed but still no luck. HELP ME!

    ''Duplicate post, continue here - [https://support.mozilla.com/en-US/questions/793259]''
    I installed Adobe dlm add-on and now Firefox will not open. I see the process starting in Task Manager but no window opens. Unistalled Firefox then re-installed but still no luck. HELP ME! I do not want to use IE! I presume it has something to do with Adobe DLM as ever since then it is not working.

    I had this problem for a couple weeks as well and it was extremely frustrating considering we use firefox for all our company tasks. Here is the solution:
    First of all if you have no bookmarks you want to save, then go directly to step 7. If you want to save your bookmarks first, then follow these steps.
    1. Shut down the computer
    2. Reboot and open firefox
    3. Go to Task Manager, right click firefox.exe, and click END PROCESS TREE
    4. WAIT 30 SECONDS! Then Double-click the shortcut to try and open firefox again
    5.Repeat steps 3 and 4 until firefox finally opens (trust me, eventually it will)
    6. Once it finally opens, backup your bookmarks,
    7. Download a copy of firefox from there website
    8. Uninstall from programs menu and make sure to check the box REMOVE ALL COMPONENTS
    9. install the new copy and BOOM! it works
    If it doesn't work, you're an idiot. If you don't want to reinstall firefox, then you're out of luck. Good Luck!

  • How to add new email account that's not an email account?

    I have Google Apps for business account and I've created a bunch of aliases that I need to have, let's take as an example info@<mydomain.com>. When I've tried to create gmail account info@<mydomain.com> I was getting info that this email address is already in use. At the Google support they told me that's because I already created this as an alias, which I get it, that make sense. But now, how can I create this - info@<mydomain.com> in Thunderbird to be displayed as separate mail account in my mail account list in the left window? This and all the rest of aliases I'm using. There is no such thing in tools->account settings as add an alias, there is only add mail account and this is not an account but an alias. I thought I'll try to do this as a new mail account with all the settings as this already existing mail account that this is alias of and after that I just rename the account into proper one but when I try to fill all the boxes in adding new mail account I'm getting the massage that user name or password is wrong. But I've triple checked the password and it's the right one. I've even changed then and typed new settings just to make sure but the error was the same. How and what should I do then?

    A mail account = an email address.
    You can have more than one email address using the same server settings.
    eg: ''mail at mydomain dot com'' and ''info at mydomain dot com''
    can be two separate mail accounts, each receiving their own mail.
    '''Other option - Set up 'identities''''
    This can be used as a catch all account, so if you already had a mail account for eg: ''mail at mydomain dot com''
    you could add another identity = ''info at mydomain dot com''
    This would not show in the Folder Pane as a separate account, but emails from ''info at mydomain dot com'' would be received into
    ''mail at mydomain dot com'' mail account.
    Here is some good info on mail identites.
    * http://kb.mozillazine.org/Mozilla_Suite_:_FAQs_:_Mail_Aliases

  • How can i add videos,movies and tv shows episodes to my ipod nano?I want to know whether i can directly add them through my pc or not without downloading them from i tunes store?

    how can i add videos,movies and tv shows episodes to my ipod nano?I want to know whether i can directly add them through my pc or not without downloading them from i tunes store?

    Yes, you can add your own videos to iTunes, then sync them to your nano, subject to supported max resolution limit and file type.  The specs for the 7th gen nano says (I don't know which nano model you have), Video Format Support
    "H.264 video: 720 by 576 pixels, 30 frames per second; Baseline, Main, and High-Profile level 3.0 with AAC-LC audio up to 256 Kbps; 48kHz; stereo audio in .m4v, .mp4, and .mov file formats
    MPEG-4 video: up to 2.5 Mbps, 720 by 576 pixels, 30 frames per second; Simple Profile with AAC-LC audio up to 256 Kbps; 48kHz; stereo audio in .m4v, .mp4, and .mov file formats"
    http://www.apple.com/ipod-nano/specs.html
    (earlier nanos have lower max resolution limits)
    So, "HD" video is too high resolution, so iTunes will not sync such videos to the iPod (although they play in iTunes).  If you are asking how to set up iTunes to sync videos in general (regardless of source), please post back.

  • HT1473 Help I just moved my music files to a external hard drive and am using the new crappy version ( i know my opinion) of itunes and cant add the files to my libray it gives me the add file to library option but not the add folder to library option wha

    Help I just moved my music files to a external hard drive and am using the new crappy version ( i know my opinion) of itunes and cant add the files to my libray it gives me the add file to library option but not the add folder to library option what am i doing wrong?

    In iTunes 11 uncheck the preferences setting in in the iTunes Preferences panel "Advanced > Copy Files to iTunes Media folder when adding to Library"

  • If I want to add a family member who is not in my household and has their own itunes account and credit info...

    If I want to add a family member who is not in my household and has their own itunes account and credit info...will all their purchases be charged to my credit card as the Organizer?

    Hi mbostick, 
    Welcome to the Apple Support Communities!
    The only way a family member can use their own funds and not the Organizer’s account for purchases would be with store credit, such as an iTunes gift card. 
    Family purchases and payments
    Making purchases
    After you set up your family, any time a family member initiates a new purchase it will be billed directly to your account unless that family member has gift or store credit. First, their store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer. As the family organizer, any receipts generated by the transaction will be sent to you. Learn more about how iTunes Store purchases are billed.
    Have a great day,
    Joe

  • Created a new folder in bookmarks; when try to add new bookmark, new folder does not appear in drop down menu; using safari for windows

    created a new folder in bookmarks; when try to add new bookmark, new folder does not appear in drop down menu; using safari for windows

    You are using an older version of firefox, upgrade your browser to Firefox 8 and try
    * getfirefox.com

  • I DON'T WANT TO UPGRADE OR HAVE AN ADD ON EVER, DISABLING UPDATES DOES NOT WORK, HOW DO I KILL ALL MEASAGES FOR UP GRADES AND ADD ON'S FOR EVER, ONCE AND FOR ALL, COMPLETELY, THE END AND NEVER BE BOTHERED AGAIN EVER!

    I DON'T WANT TO UPGRADE OR HAVE AN ADD ON EVER, DISABLING UPDATES DOES NOT WORK, HOW DO I KILL ALL MESSAGES FOR UP GRADES AND ADD ON'S FOR EVER, ONCE AND FOR ALL, COMPLETELY, THE END AND NEVER BE BOTHERED AGAIN EVER! ALSO IF I KILL MYSELF I WILL HOLD YOU PERSONALTY RESPONSIBLE.edit

    There is a world of information in these forums if you use the search function near the top right of this page. Just type in NAS for example and you get many threads on the subject (marked with a green checkmark if it solved the question) another example would be Airport Exterme and sound system. Once you formulate your ideas better then specific questions can be addressed one at a time. You may find that a less expensive choice for a server might be a mac mini. Good luck with your project, ask more specific questions and update you systems profile.

  • HT201077 As of recently any photos I add to a shared photostream will not update for others. Only I can see them. How come others sharing this photo stream are not getting the new photos?

    As of recently any photos I add to a shared photostream will not update for others and I don't see the updated photos on my other devices. Only I can see them from the device that i've posted from. How come others sharing this photostream are no longer getting the new photos? My iphone (the device i'm adding from) shows 20 pictures in this shared photostream and yet 4 other people that I share this photostream album with and my ipad only show 12 photos. For the past week I keep adding photos thinking people will see them but it just won't update the new ones. Any ideas how to fix this?

    You can stop new photos being automatically added to Photostream in iPhoto from iPhoto preferences > Photostream.

  • How can i add STORAGE LOCATION field which is not...............

    hi,
    sap gurus,
    good morning to all,
    how can i add STORAGE LOCATION field which is not in the standard tables namely
    KOMP, KOMK, and KOMG.
    how to include it in our FIELDS FROM FIELD CATALOGUE.
    if we include this field is there any impact on the standard tables.
    plz let me know this.
    bcz
    we are selling our products in two ways
    (1). one is straight from factory ie direct sales from factory
    if customer asks for excise invoice then we will sell thru factory and keeping freight in mind we will
    deliver him which ever is economical either rail or road.
    before coming to second case of selling the goods
    we will do STOCK TRANSPORT ORDER from plant to different storage locations.
    if we did STO thru road we have to sell the goods thru road only.
    if we did STO thru rail we have to sell the goods thru rail route only.
    (2). if the customer is not asking any excise invoice then we will send the goods thru depo/storage
    location which is not registered under excise.
    if the goods came by road then it will be delivered by road only.
    if the goods came by rail then it will be delivered by rail only.
    my logic here is
    basing on the
    storage location, transportation types, and distance i want to create condition record
    that captures exact frieght at the sales order level.
    confirm whether i am right or wrong.
    regards,
    balaji.t
    09990019711.

    Hi,
    It is not recommended to add new fields to any SAP standard tables. It disturbs the whole SAP functionality.
    But if you have no choice expcept to change the standard tables to meet your requirement -  then you need an access key to modify the object, which is available from the market place.
    Nevertheless, the better option is to create a 'Z' table with the required fields and use that accordingly.
    Changing standard tables will have serious impact when you apply patches or do an upgrade on the existing functionality.
    REWARD POINTS IF HELPFUL
    Regards
    Sai

  • I cannot add a printer. It is not listed under default, and does not allow me to add printer.

    I cannot add a printer. It is not listed under default, and does not allow me to a add printer.

    philw
    Try some maintenance actions:
    1) Reset Printing System:
    http://support.apple.com/kb/PH14141
    2) If that doesn't help, repair the hard drive and permissions after booting from the recovery partition:
    http://support.apple.com/kb/ts1417
    (go down to "Try Disk Utility")

  • Itunes won't add files or folders, also will not import

    I have some songs on itunes, but now itunes won't add files or folders, also will not import at all.
    I did an uninstall and reinstall but still does not work.
    Can anyone help?
    Lucille
      Windows 2000  

    Ok. So its finally working again. Not sure why, but maybe my experience will help someone else.
    All I can say is that I have been trying a relentless combination of mounting and mounting the drive, checking and unchecking the 'copy files to iTunes Library', running 'consolidate library', and everything in between. One of them finally kicked it back into action.
    Nice Apple. 9.2.1 isn't buggy at all...that's sarcasm.

  • I have mp4 videos on my computer that I want to add to itunes...the add a file or folder is not working. Why?

    I have mp4 videos on my computer that I want to add to itunes...the add a file or folder is not working. Why?

    wait until, Apple fixes it

  • HI! any idea why the add videos on apple site are not loading on my computer?

    HI! any idea why the add videos on apple site are not loading on my computer?

    You may have something as simple as a corrupt cache. Try resetting in Safe Mode and see if that fixes it. If not another thing to attempt is opening Disk Utility and Repairing Disk Permissions, do this action 2-3 times.

Maybe you are looking for