Problem with Float - round down error

I have to save in database (MySql) amount which is passed by user. For instance user writes 99999999999. But Float.parseFloat(request.getParameter("amoUnit")) returns value 9.9999998E10 . When I save this value in database I receive 99999998000.00. I want to have in database exactly what the user has written. Should I use differen data type? Thanks in advance.

leonkaP wrote:
... I want to have in database exactly what the user has written. Should I use differen data type? Yes.
If you want more precision than float, use double.
If you want exact precision, use BigDecimal.

Similar Messages

  • Having problems with Bridge shutting down after saving photo in PS Cs5,,,,,,,,,  Also when i attempt to update either PS or bridge get an error message in Adobe application manger "Error loading updater workflow"

    Having problems with Bridge shutting down after saving photo in PS Cs5,,,,,,,,,  Also when i attempt to update either PS or bridge get an error message in Adobe application manger "Error loading updater workflow"

    Sorry for the late reply. My email firewall has become a little over zealous & sent a lot of my emails straight to my junk email folder, so I have only just now discovered your reply in my junk mail folder.
    The only "don't open files exceeding xxx megabytes" instruction I can find in my Prefs, is in the Bridge Prefs for Thumbnails, & mine is set at 1000mb. The biggest files I handle are bigger than 200mb so I should be able to open a few, not just one.
    However, this doesn't explain why I can open a psd format file of 180mb, close it, but then can't open a RAW format file of only 26mb immediately after.
    I can open the RAW file only if I restart my computer - very annoying!
    However, thanks for the advice about the video card & memory.
    So, I'm still stuck as to what the issue is.

  • TS3694 Hi,I have an iphone 3g that is "not" jailbroken,nor have I tried,however,I had been having problems with it shuting down&not starting again so I updated&tried to restore only to have an error 1015.The iphone is now stuck on the connect to itunes,pl

    Hi, I have an Iphone 3g that is "Not" jailbroken, nor do I want it to be jailbroken. However, I had been having problems with it shuting down and not starting again. So, I tried to update and restore only to get an "error" 1015.
    It is now stuck on "connect to itunes"
    Any help would be great as this is a factory unlocked phone

    Apple in no way blocks devices.
    Carriers can blacklist devices from their network.  If that is what has occurred, only the carrier can remove the blacklist.  This should have nothing to do with your ability to activate the device and use it as an iPod.

  • I have a problem with Pages shutting down my documents.

      I have a problem with Pages shutting down my documents. I have several
    several documents on my homepage,but once I select one it shuts down and
    goes to the ipad homepage.Other documents open with no problem.
    Can someone tell me what's happening
    antdel

    Pages is crashing for some reason.
    You say that other documents open with no problems, do you mean other Pages documents or documents in another app?
    Try closing Pages completely in the recents tray and reboot your iPad. See if that helps. If it doesn't help, you may have to delete and reinstall Pages. If that doesn't work, you might have a corrupt document that you need to track down and delete.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Premiere Pro CS5: please help problem with importing a file error output "there was an error decompressing audio or video"

    please help problem with importing a file error output "there was an error decompressing audio or video"

    this is related to what adobe program/version?

  • Problem with battery running down more quickly after downloading OS6 to 3GS iPhone

    Problem with battery running down more quickly after I downloaded OS6 to 3GS iPhone.

    gdgmacguy
    I guess I should have asked for the "definitive" fix. I read several "fixes" but it seems no one knows if Apple has a definitive fix. Kind of like going into an Apple store and getting three different answers from three different reps. At least they are not rude and no, I don't have a problem searching the forum.
    <Edited by Host>

  • Weird problem with power shut down msi nforce 4 platinum

    recently i have flashed the latest bios 1.9 of msi nforce 4 u platinum, everything work fine untill yesterday.some stanges happened......
    my power doesnt have a on and off button on it ,every time i turn off the pc , i have to turn off the power button of a socket near by the pc.everytime it works fine, but yesterday when i turn on the power on button of that socket , the pc automatic start, i didint turn on the power button of pc, what a weird problem..   also when i  go into os , the system time also changed, although i can turn them back to correct one in bios and os, but when i turn the pc off , it changed again...   could any one help me out , what is teh real problem of my pc. some virus ?thanks a lot.
    weird problem with power shut down  msi nforce 4 platinum

    it seems the first question has been solved. cos today when i turn on pc, the oc set up is gone ,in bios, it back to the original set up.i cant save my oc setup, so it definitely a battery problem!!!!!!!!!!!
    i take the old battery t o a saler , there they massure it with voltmeter, it shows only 0.97v, but in bios 1.6 it shows 1.82v, so waht is the real meaning of that reading num in bios for battery?it cant be the real voltage of the battery. i buy a new one ,this one is maxcell 2032   hitachi, the old one is shi  t   panansonic 2032 .the new one shows 3.17v with voltmeter, then i come back , installed the  new battery , in bios this time it shows 2.3v in bios 1.6. so the reading num in bios for battery is definitely is not a real reading for your battery.
    i will keep my pc in 24/7 using , and i will look if the battery is sable or not , cos untilll now no one come out for a real explain for this  stupid battery problem of msi nofroce 4 platinum.i dont want change battery every 2 or 3month, what a real sick of this!!!!

  • Problems with iTunes Festival "A error occurred loading this content"

    Hi
    I'm having problems getting iTunes Festival to work, I can click through shows but when i click on "play" for any particular one I get the dreaded "An Error Occured loading this content"
    So far from what I've tried, most things work well, some things give me that error:
    What works well:
    Netflix
    Podcast
    Redbull TV
    Bloomberg
    What give me "an error occured loading this content":
    iTunes Festival
    Crackle
    (note: i havent tried everything yet)
    What I've tried:
    1) restarting apple tv
    2) resetting (pressing down and menu at the same time)
    3) resetting my wifi router
    4) changing ATV DNS to google 8.8.8.8
    5) changing ATV DNS to auto
    I'm pretty sure its not my wifi or router because netflix and etc work in HD with no pr

    I have the same problem I use a BT home hub the old white one and a iPad 4 if I reboot the hub it works ok for pics and some I player content then when I try to load a certain program it crashes and I need to reboot the hub again. Is this a problem with the hub?

  • Media center problem with Qosmio G35-650 - error message

    hello all
    I have a problem with media center on qosmio g35-650.
    When starting live tv , an error message appears and writes "application failure please restart your computer again. if problem persists again please contact with your hardware assistance"
    It was working yesterday and today something happened.
    Also it cant find any tv signal available. Is it a hardware problem?
    regards
    cem mete

    Hello
    Please dont be mad on me but in most cases is the user the problem and not the machine. I really dont know what is problem in your case but if the unit has well TV signal there should not be any problem.
    Your unit must be an US model. Those notebooks are not known to me but I presume that Qosmio player is preinstalled too. I have G20 and TV works perfect (WMCE and Qosmio player). What is with Qosmio player in your case? Does it work well?
    Be sure that TV tuner is listed properly in device manager and also TV antenna is connected properly.

  • Problem with the round function using Date

    Hi,
    I have a problem with round function for Date. The input is the four digit year which was picked out from say SYSDATE.
    In these scenarios the original value should be rounded up and should get the output as shown under rounded column.
    Scenario1
    Original Rounded
    2020 ---> 2020
    2021 ---> 2020
    2022 ---> 2020
    2023 ---> 2020
    2024 ---> 2020
    2025 ---> 2025
    2026 ---> 2025
    Scenario2
    Original Rounded
    2020 ---> 2020
    2021 ---> 2025
    2022 ---> 2025
    2023 ---> 2025
    2024 ---> 2025
    2025 ---> 2030
    2026 ---> 2030
    Scenario3
    Original Rounded
    2020 ---> 2020
    2021 ---> 2020
    2022 ---> 2020
    2023 ---> 2025
    2024 ---> 2025
    2025 ---> 2025
    2026 ---> 2025
    Can anyone help with this....Urgent Please
    Thanx for your time

    1.
    SQL> select n,n-mod(n,5) rnd from test;
             N        RND
          2020       2020
          2021       2020
          2022       2020
          2023       2020
          2024       2020
          2025       2025
          2026       2025
    2.
    SQL> select n,n+(case when mod(n,10) = 0 then 0
      2                   when mod(n,10) < 5 then 5-mod(n,5)
      3                   else 10-mod(n,10)
      4              end) rnd
      5  from test;
             N        RND
          2020       2020
          2021       2025
          2022       2025
          2023       2025
          2024       2025
          2025       2030
          2026       2030
    7 rows selected.
    3.
    SQL> select n,n+(case when mod(n,10) < 3 then mod(n,10)*-1
      2                   when mod(n,10) < 8 then 5-mod(n,10)
      3                   else 10-mod(n,10)
      4              end) rnd
      5  from test;
             N        RND
          2020       2020
          2021       2020
          2022       2020
          2023       2025
          2024       2025
          2025       2025
          2026       2025
          2027       2025
          2028       2030
          2029       2030
          2030       2030
    11 rows selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem with Float.toString

    Hi,
    I have a small problem with wrapper class Float.
    For example
    float f = 99999999999999999f;
    f.toString(); returns a mentioned in the api doc: 9.9999999999999999E16
    while I wanted the original 17 times a 9,
    how can I achieve this??
    THX

    I tried to use the DecimalFormat class with the patter 17 * #, but the string it prints is no longer the same as in the original Float (17 * 9), now I get 17 chars but they are no all 9

  • Problem with Inspector pull-down menus

    I have this weird problem with DVD Studio Pro all of a sudden. I'm wondering if a recent update might have broken something, and how I can fix it.
    The problem is that certain pull-down menus in the Inspector are not responding anymore. Important ones too, like "set target" and "end jump," Remote Control functions, as well as ones I don't use as often like Shape (button shape?). I click on them and nothing happens, although sometimes the default "not set" text disappears. These menus are in the same place in the Inspector, so this may or may not have something to do with it, I have no idea.
    At any rate, I can't make a DVD without these functions, and I usually need to make a DVD once or twice a week. Although it has been two weeks since I last used it.
    I am almost positive that nothing has changed with my system since I used it last, besides Apple Software Updates.
    Version 2.0.5, OSX Tiger. I know, time to upgrade, but I don't control the budget.

    Just the Inspector, i haven't found any other problems.
    Quicktime was updated a few days before the problem started. On May 27th I ran the updates for Quicktime 7.4.5, ProKit 4.5, iTunes 7.6.2, and Safari 3.1.1. I noticed the problem with the DVDSP Inspectors the next time I ran the program on May 29.
    I understand the ProKit is for a later version so I'm a bit mystified as to why I was offered the update, however I've installed previous ProKit updates without any problems.
    A clean install will certainly be my next step. But I have to wait for a lull in real work activity before I can get into that. Luckily I've remembered that I can accomplish a lot of what I needed the inspector for under the Connections tab, so it's a little less urgent now.
    I'm usually pretty careful about running updates, and I usually ignore them for a few weeks (or longer) before I run the updates so I can monitor the internet for other people's disasters. But I got lazy this time. Maybe there are not too many DVDSP v2 installations out there. And maybe I need to increase the pressure on my company to update my software!
    On that note, this experience is helping my case with convincing them to replace one of the old Avids with a new FCS suite, so it might become a moot point. Will the license allow me to operate DVDSP4 on a different machine or does it have to stay on the main suite, if we go that way? We like to process the output on another box, so the editors can get on with the next project.

  • Smart Forms : problem with Float Variable

    Hi  Expert,
       I have a probelm with Float variable. In my smart forms one fields of table QAMV contain value like 8.0000000000000000E+01.
    I have to remove the exponent and display value like 80.
    I have tried wa_qamv-sollwert(E10.4).. but it not working.
    Can U suggest me some solution.
    Regards
    Swati.
    Edited by: Swati Namdev on Apr 27, 2010 12:19 PM

    Hi,
    Please follow the steps.
    1. In your smart form create a variable w_val ,, type,, associate type -->  CHAR10
    2. Now write a code, jsut above your node where u wud like to get this value... For this Create -> Flow Logic -> Program Lines.. Now you have editor..
    3. In input parameters , put i_tab-QAMV.. and in output parameter put w_val... and Code like below
    CALL FUNCTION 'MD_CONV_QUANTITY_FLOAT_TO_PACK'
      EXPORTING
        iv_menge       = i_tab-qamv
      IMPORTING
        EV_MENGE       = w_val.
    4. Now grag and drop this w_val from global data field list...your this w_val will have the rounded value.. Pls try this and check..   It will work.
    Regards,
    Lokesh.
    Edited by: Lokesh Tarey on Apr 27, 2010 9:28 AM

  • Installation problems with Creative Suite CS5 (Error (-1))

    I'm trying to install the Adobe Creative Suite CS5 on a Windows XP 32-Bit laptop.
    After entering the serial number, the installation begins and stops at around 7%. Each time I get this error: The Setup encountered an error(-1) during install. Please restart the machine and try again.
    I've tried restarting the machine, uninstalling Adobe Reader, and using the Adobe Cleaner tool. None of these things have worked.
    I've tried searching and can't seem to find any solution to this problem. I provided the error summary below. Any help would be appreciated.. this is driving me crazy.
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 8 error(s), 5 warning(s)
    WARNING: DW024: The payload: Adobe Photoshop CS5 Core  {7DFEBBA4-81E1-425B-BBAA-06E9E5BBD97E} requires a UI parent with following specification:
        Family: Photoshop
        ProductName: Adobe Photoshop CS5 Core_x64
        This parent relationship is not satisfied, because this payload is not present in this session.
    ERROR: DW025: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
        Family: CoreTech
        ProductName: Adobe Player for Embedding x64
        MinVersion: 0.0.0.0
        This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
        Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
        Family: Shared Technology
        ProductName: Photoshop Camera Raw (64 bit)
        MinVersion: 0.0.0.0
        This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
        Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
        Family: CoreTech
        ProductName: AdobeCMaps x64 CS5
        MinVersion: 0.0.0.0
        This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
        Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
        Family: CoreTech
        ProductName: Adobe Linguistics CS5 x64
        MinVersion: 0.0.0.0
        This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
        Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
        Family: CoreTech
        ProductName: AdobePDFL x64 CS5
        MinVersion: 0.0.0.0
        This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
        Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
        Family: CoreTech
        ProductName: AdobeTypeSupport x64 CS5
        MinVersion: 0.0.0.0
        This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
        Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has required dependency on:
        Family: CoreTech
        ProductName: Adobe WinSoft Linguistics Plugin CS5 x64
        MinVersion: 0.0.0.0
        This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
        Removing this dependency from list. Product may function improperly.
    WARNING: DW025: The payload with AdobeCode:  {CFC9F871-7C40-40B6-BE4A-B98A5B309716} has recommended dependency on:
        Family: Adobe Web Suite CS5
        ProductName: Adobe Media Encoder CS5 X64
        MinVersion: 0.0.0.0
        This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
        Removing this payload from the dependency list.
    WARNING: DW025: The payload with AdobeCode:  {E8815668-95B0-443D-AC92-2BFD7DD8F16A} has recommended dependency on:
        Family: Adobe Web Suite CS5
        ProductName: Adobe Media Encoder CS5 X64
        MinVersion: 0.0.0.0
        This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
        Removing this payload from the dependency list.
    ERROR: DW025: The payload with AdobeCode:  {F9766AC1-1461-1033-B862-DF8FE1C033BE} has required dependency on:
        Family: InDesign
        ProductName: Adobe InDesign CS5 Icon Handler x64
        MinVersion: 0.0.0.0
        This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
        Removing this dependency from list. Product may function improperly.
    WARNING: DW025: The payload with AdobeCode:  {F9766AC1-1461-1033-B862-DF8FE1C033BE} has recommended dependency on:
        Family: Adobe Web Suite CS5
        ProductName: Adobe Media Encoder CS5 X64
        MinVersion: 0.0.0.0
        This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
        Removing this payload from the dependency list.
    WARNING: DW039: Payload {A1BC7068-C1BA-410F-8B9A-DB807C803DE2} Creative Suite 5 Design Premium 5.0.0.0 is not installed so should not be there in the deployment file
    Please search the above error/warning string(s) to find when the error occurred.
    These errors resulted in installer Exit Code mentioned below.
    Exit Code: 0 - No error.

    I usually start from the bottom of the log and search for Error and Fatal.  I then search for the error in the Adobe knowledge base, the search bar at http://www.adobe.com/ accesses this.
    You can try using the Adobe Support Advisor - http://www.adobe.com/support/loganalyzer/.  There as an option there which allows you to package for support.  You can then post the token to this thread.

  • Problem with floated elements in IE5.5

    I've apparently got a problem with a right sidebar float
    being dropped in a primitive version of IE and I can't figure out a
    remedy, as none are suggested in dwcs3's browser compatibility
    function. The site is lindafarronknapp.com... if anyone has any
    suggestions I would more than appreciate it...

    Thank you for the replies. What was happening is that the other audio files were being onverted by PPPro. This one was not. I moved the file to the desktop and once again placed it into the project. This time the yellow conversion line on the bottom right corner went to work and it works fine. It was some type of glitch with that one file. Thanks again. Roman

Maybe you are looking for

  • Cannot delete unwanted layer. Unwanted layer previews even though it's off...

    My question relates to InDesign 5.0.3 and Acrobat Pro 9.0.0 When Exporting a PDF I am selecting Export Layers and choosing "Visible and Printable Layers" to export. I'm not using distiller as I want to keep some layers intact so I can make one layer

  • Trouble printing to video HDV

    We've changed the MacOS for 6.3 version and the final for 7.0 version. It's an Imac. When now I shoot to tape (sony HVR 1500) an HDV108050i sequence the stream brakes. It seems the flow is not continuous.The image distort, go out, go in, TC jump. ( w

  • Using Variables in Meta Data

    One thing I loved about PhotoMechanic was the ability to use variables in a lot of the metadata info, IE date taken......

  • I have been unable to update Firefox 12 using a dialup connection. I have tried repeatedly.

    I am using a dial up connection. I have tried several times to update to FF 12. most connections are 24 at best usually at night. The last download showed Firefox scanning for viruses. I have been unable to locate the downloads anywhere. Very often t

  • Activation problem after restoring to 7.0.6. help

    i have an iPad 2 wifi+3g that working fine on ios 7.0.4 and previous version of ios. last night i tried to update (restore) my iPad to 7.0.6 using iTunes. im using MacBook Pro (OSX Lion) and iTunes 11.1.4, the latest iTunes version at that time. rest