Minimum amount of digits in double

hello everyone,
i was doing quite some research on how many digits a double can hold.
it's clear, that this is limited by the amount of bits a double consists of.
the algorithm is too complicated for me to understand, though.
Depending on the number , a double is supposed to be able
to hold 15-19 digits.
For example the number "12345678901234,121" can be held by a double,
but "12345678901234,122" can't. Also "999999999999999999" (18 digits)
and "2220000000000000000000" (23 digits) are ok but .
I need a reliable statement (prooved by some article or book) for boss,
which amount of digits (fraction and digital) a double can hold as
a minimum (e.g. 12 digital and 5 fraction-digits). even after hours of search i wasn't able to come up with anything, so I hope someone can help me here.
here are some links on the topic:
http://www.trotek.ec-lyon.fr/~muller/cours/numeration/flp_ieee.html.en
http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Tech/Chapter02/floatingPt.html
http://forum.java.sun.com/thread.jspa?forumID=31&threadID=403027
many greetings
marc johnen, berlin

i was doing quite some research on how many digits a double can hold.Check out the API documentation for the Double.longBitsToDouble method.
It explainsexactly what the format of a double is all about. In binary, a double can
hold 52 binary digits; always. The notion of an eleven bit exponent implements
the 'floating point' idea. When you want to translate this notion to decimal, you
have to be prepared for certain fractions that cannot be exactly expressed as
a finite sum of negative piwers of 2. A safe estimation is <= 15 decimal digits for
all double values.
kind regards,
Jos

Similar Messages

  • Dunning Key and minimum amount per dunning level

    Dear Friends,
    Can any one please explain the dunnig key functions?
    While defining the minimum amout their is two terms one is open item and another one is total amount.
    The definintion of total amount is all the items in an account means the items which are paid also? because I am confuse to understand the differece between total amount and open items. Please expain the both the terms.
    Thanks in advance,
    Regards,
    Mahendra Dev

    Dear Rajeev,
    Lots of thanks for your reply.
    as per my understanding on behalf of your explanation.
    Total Open item can be total of item in grace period and also the item which is in dunning level
    and the total item only the total of item which is in dunning level.
    I am in the mid of chapter of Minimum amount per dunning level.
    and want to clear the term the relation between the total amount and the total open items be greater than a minimum percentage.
    Please confirm. Lots of thanks in advance.
    Regards,
    Mahendra Dev

  • Minimum amount of free space on phone?

    Just out of curiousity, is there a minimum amount that has to be kept free to ensure smooth running, or could you use up every last kb if you wanted? I would like to think it wouldn't be much, since the "8gb" is already down to 7.27 before you even start!

    With a Mac and OS X, there are several rules of thumb floating around with the most common being keep no less than 10% free. Someone I know who writes OS X troubleshooting books says you should never have less than 5GB free on a Mac which provides for having enough free space to perform an Archive & Install if needed which doesn't apply to the iPhone.
    10% free on the iPhone would be around 800MB or more like just over 700MB. I've used my iPhone with no problems at 400MB or so free so I usually try to split the difference and keep my free space in the 500MB or so free with no problems.
    I would like to think it wouldn't be much, since the "8gb" is already down to 7.27 before you even start!
    This is the same for all drives which advertise the decimal equivalent which isn't the actual with the actual being slightly less and OS X alone on the iPhone takes up around 500MB or so.

  • VAT Perceptions in Argentina with minimum amounts (VA02 problem)

    Hi,
    I am creating a return order with transaction VA01 and exclude the calculated amouts for condition J1AQ. Then I visualize the order with transaction VA03 and the values are ok. But when use the transaction VA02 recalculates these values and set incorrect values in condition J1AQ.  
    We are calculating this condition according with note 506672, VAT Perceptions in Argentina with minimum amounts per document could be calculated with pricing formula 932 which was proposed in consulting note 102852 as a replacement for the standard formula 333.
    Note 506672
    https://websmp230.sap-ag.de/sap(bD1lcyZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=506672
    Note 102852
    https://websmp230.sap-ag.de/sap(bD1lcyZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=102852
    Thank you and regards
    spc

    Hi,
    Were you using two currencies or was it all in the local currency?
    Perhaps the exhcange rate changed in between each transaction?
    Also, did you reverse with MBST or a 102 / 122 movement.
    Steve B

  • F110-Minimum amount has not been reached

    Guys,
    I try to run F110 for a check amount of 0.05US$. And sysetm issues me error message "Minimum amount has not been reached". But I already made mininmum amount in FBZP as 0.01. What else I need to do?
    Regards
    Iqtidar

    did you check payment company and payment method?

  • Set Minimum amount for non LVA  Asset Class

    Dear all,
    Is it possible to set a minimum amount for asset classes other LVA asset class?
    Thanks & regards.

    Dear Jay,
    I didn't see a configuration setting to set the minimum amount for asset class even for LVA asset class - in LVA asset class we will specify the maximum amount only not the minimum amount. 
    I think through SAP standard setting this is not possible and may require some enhancements for this.
    Regards,
    Kiran Yelamarthi

  • Minimum amount of segments with pen tool

    I have a really basic question using the pen tool in Flash. Is there a minimum amount of segments (or something that I'm not doing) that need to be drawn in order to close a polygon shape created with the pen tool. I've found in many instances I seem to be closing the polygon and yet when I go to fill the object it won't fill. I then discover that the beginning and end points are not "joined" together (as in Illustrator). The icon turns to a hollow circle when I get to the original point (as in Illustrator) but it doesn't close the segments.
    Thanks

    Check if you have your fill color set to non-blank. In Properties Panel, under Fill and Stroke.
    After drawing your polygon, select a Paint Bucket Tool (K), select fill color and click inside the polygon.
    If the shape is (from any reason) really not closed, select Selection Tool (V) and check the main menu -> view -> snapping -> snap to objects: true.
    Hover over the unconnected anchor point until you get a corner icon next to the cursor. Then click & drag the point to the other point you want to connect it with. Snapping will ensure the polygon will close now.
    Now you can use the Paint Bucket Tool.

  • Cloud should have same minimum storage as Digital ...

    If Cloud is going to replace DV as backup/storage provided by BT, why doesn't it have the same basic minimum amount of 5GB?
    This will cause all sorts of problems.

    Smirnoff wrote:
    Ted_ntsx wrote:
    Maybe they though downgrading the "free" storage space it would persuade people to enter another 12 month contract to get back the storage space they already had.
    It appears that only 2 packages offer 50GB as basic and they may be the ones you have to re-contract for to get it.
    It seems all others require a paid-for upgrade. See:
    Yes. I had this problem with having a BT Mobile phone, on BT Total Broadband anywhere, unlimited.
    I posted to the Mods, but there's been no response.
    Those are the BT rules, I suppose - and we have to live with them.
    I would cost a lot of aggro and time to change the mobile supplier and go back to unlimited broadband. BT did offer me BT Vision as a pacifier, but my own vision, although not perfect at close range, is good enough.
    MS office (2013 variants) offer good cloud storage - it depends on what you want.

  • Extended Withholding Tax - Minimum Amount

    Dear SAP Expert,
    In our setup we have extended withholding tax incoming payment for outgoing invoices.
    The scenario is if invoice base amount is less than 300 EGP (local curreny) then withholding tax information should not capture invoice document.
    I setup minimum based amount on withholding tax type and withholding tax codes level but still when user post outgoing invoices WHT information is captured in FI document.
    Because of above issue automatic clearing (F.13) is not happening and we are getting error message like "Items with withholding tax code for customer subject to withholding tax"
    looking for expert assistance.
    B/R
    Prashant Rane

    Dear Mani,
    Thanks for assistance.
    from your example I understand if invoice amount is less than 10,000 then WHT should be applicable.
    In my example min invoice amount is 300 EGP
    where 2 % WHT is applicable
    I wanted to know in which below field I should enter 300 EGP (from your example 10,000)?
    Calculation > Withholding Tax Codes > Define Formula for calculating Withholding Tax:
    Currency u2013 EGP
    W/Tax Type u2013 I2
    W/Tax Code u2013 P2
    Valid from u2013 01.01.2009
    To base amount - 999,999,999,999
    W/Tax Rate u2013 2%
    Reduced Withholding Tax Rate for Exemption u2013 BLANK
    Reduction of Base Amount u2013 BLANK
    Decreased Reduction of Base Amount - BLANK
    Below is complete customizing I did in my setup
    Financial Accounting
    Financial Accounting Global Settings
    Withholding Tax
    Extended Withholding Tax
    Calculation > Withholding Tax Type > Define Withholding Tax Type for payment posting:
    Withhld tax type u2013 I2
    Base Amount u2013 Net Amount
    Accumulation Type u2013 No accumulation
    Control Data u2013 W/Tax base manual, manual W/tax amnt, w/tax for payments, no cert. numbering
    Base amount u2013 W/tax code level
    W/tax amount - W/tax code level
    Minimum check u2013 Min. base amnt check at doc invoice level
    Post W/Tax Amount - YES
    Calculation > Withholding Tax Codes > Define Withholding Tax Code:
    Withhld tax type u2013 I2
    W/tax code -  P2
    Base Amount u2013 Pecentage subject to tax 100%
    Postings Indic- 1
    Calculation u2013 W/tax rate u2013 2%
    Calculation > Withholding Tax Codes > Define Formula for calculating Withholding Tax:
    Currency u2013 EGP
    W/Tax Type u2013 I2
    W/Tax Code u2013 P2
    Valid from u2013 01.01.2009
    To base amount - 999,999,999,999
    W/Tax Rate u2013 2%
    Reduced Withholding Tax Rate for Exemption u2013 BLANK
    Reduction of Base Amount u2013 BLANK
    Decreased Reduction of Base Amount - BLANK
    Calculation > Withholding Tax Codes > Minimum and Maximum Amounts
    Min / Max Amounts for W/Tax Type
    W/Tax Type u2013 I2
    Currency u2013 EGP
    Valid from u2013 01.01.2009
    Min W/Tax Amount u2013 60
    Max W/Tax Amount - 999,999,999,999.00
    Min base amount u2013 300
    Min / Max Amounts for W/Tax Code
    W/Tax Type u2013 I2
    W/Tax Code u2013 P2
    Currency u2013 EGP
    Valid from u2013 01.01.2009
    Min W/Tax Amount u2013 60
    Max W/Tax Amount - 999,999,999,999.00
    Min base amount u2013 300
    W/tax base exem amount u2013 BLANK
    Company Code > Assign WHT Tax Type To Company Code:
    Company Code u2013 0011
    W/Tax Type u2013 I2
    Customer Data u2013 Subject to W/Tax

  • Trigger the workflow for a minimum amount.

    Hi all,
    I would like to trigger the workflow if only the PO amount meet the minimum of 50 euros or more.  Is there any config settings for these. i have checked the release strategies in SPRO..but cant find the amount field..
    Thanks,
    Neslin.

    Hi Neslin,
    Please refer this [link|https://wiki.sdn.sap.com/wiki/display/CRM/Actionprofilesin+SAP-CRM] for help on Action profiles.
    Please note that in case of action profiles also you would have to maintain start condition for the workflow.
    Regards,
    Saumya

  • Query on minimum amount set up in FBZP

    Hi all
    In FBZP, 'paying company codes' section ,we have defined minimum outgoing payment for a company code as 1 EUR.
    Now If one vendor  has 1 invoice for a value of EUR 0.45 and another vendor  has 1 invoice for a value EUR 0.75 and the total amount to be paid at company code level is EUR 1.20 then can we expect the payment proposal to pick up both these vendors for both these invoices?
    We would like to know if the limit specified here would apply at company code level or at each vendor level.
    Regards,
    Santosh

    Hi Ravi
    Thanks for the reply. I have tested this. If I post 2 invoices for same vendor with amount as 0.5 & 0.6 , it accepts both payments. However if post the same amount for different vendors, both goes into exception list. This is the result I was guessing it is at vendor level.
    Do you think any other configuration might be impacting this if it is indeed at invoice level.
    Regards,
    Santosh

  • Batch rename with minimum numeber of digits in sequence number

    I'm pretty sure I remember this working how I wanted in previous versions of Bridge, but at least since cs4, it has not worked as I would like. I've tried searching for an answer or a setting that I'm missing, but have come back empty-handed.
    Here's my situation. Let's say I'm renaming 18 files. Each file has a sequence number. I want the sequence numeber for the first 9 to be one digit, and for the second nine to be 2 digits.
    i.e. image_1.jpg, image_2.jgp, image_3.jpg...image_10.jpg, image_11.jpg...
    The best way I've found that I can do this is to select all 18 images, and assign a 2-digit sequence number. Then, once that is complete, select the first 9 and repeat, but with a 1 digit number.
    In the past, I could select all 18 images, and choose a 1 digit number, and after 9, it would switch to 10, instead of going back to zero. Is there still a way to do that? I know it's only one extra step, but that one extra step is actually kind of two, because each time I have to reset tho starting number back to 1 or 10, and switch the setting from 2-digits to 1-digit and back again. And I usually have to rename multiple groups of files at once, so it does add up. Granted, much better than renaming one at a time, but not as convenient as I feel it could be, and as it once was.
    Am I missing something?
    Thanks,
    iLan

    While I certainly can understand the way in which computers work, I also understand that in a program as complex as any of the components in Adobe's Creative Suite, there is most certainly a way to override the computer's numerical logic so that it can remove the initial "0" from a 2-digit number. Granted, that may not be possible in the current version of Bridge, theoretically it is "Possible". And I'm quite sure it functioned that way in previous versions, although I really don't know which version I was using when it worked that way. Maybe cs2?
    As a developer, the whole reason for this question is to avoid having to create extra code in my applications to add an unnecessary "0" to digits 0-9 in any filenames of any files I want to load. Although it looks as though adobe changed the default behavior of the batch rename function, and removed (or in some peoples' minds improved) some functionality without an option to get it back.
    Unfortunately for me anyways...
    Thanks for the help,
    ilan

  • How do you limit the amount of digits in a text field?

    If a user was to input 9 digits into a text field. How do you make it so that an error message would appear if the user inputs more than 9 digits

    That code will set the TextFields length to 9 standard charecters (might not be 9 though) To limit the number of charecters and throw an error message I would use a listener on the textField. Perhaps a keyListener that keeps track of the number of charecters. ( swing has document listeners which are really nice )

  • Do I need to leave a minimum amount of free space?

    Hello,
    I have the 8g iPhone, recently added data to it, which leaves approximately 375 megs of free space. Should this relatively small amount of free space cause any issues? I read a few posts about it but the answers listed in those was relatively inconclusive. I'm thinking about the 10% rule (or myth) about free space on HD's below that amount start to suffer performance issues, etc.
    Thanks
    Message was edited by: Azeroth

    Right, I've only heard suggestions or assumptions so far. I guess it would seem strange to me that Apple would allow you to fill potential space that would impact the device performance, why not just set it aside. If this were true, wouldn't it mean you could only use just over 6gigs on an 8gig iPod without some sort of consequence (i.e. Start with 8G, down to 7.2g for the OS, down another 10% to avoid performance problems, would leave you at just over 6gigs right?)
    I guess I thought if this were true, Apple would say something or do something to prevent it or warn users of potential consequences.
    Message was edited by: Azeroth

  • Viewing only x number of digits for double or float

    I was wondering if I had a float or a double, and lets say I didn't want to see all those decimal places, is there a way for me to limit the number of decimal places that is outputted to like 3 or 4 instead of 10? Thanks for the help.

    oh...
    you probably wanted to know how to, lol
    go to:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=313399
    cheers.

Maybe you are looking for

  • Can't sign into apple support communities with icloud apple id

    i realise this isn't the right community for this question, but apple don't have a support category called "apple support". i have that problem where I have an appleid called "frumbert", which I got about 10 years ago. it is and always has been tied

  • Issue with 2 mics when recording Garageband podcast

    Hi, I have two Blue Snowball mics set up in the aggregate devices of garageband but I can only chose stereo 1 & 2 and not Stereo 3 & 4 (which doesn't show up at all) when enabling multitrack recording while podcasting. Surprisingly, when I first set

  • Accessing Time Capsule shared drive from Vista

    When running Vista in Bootcamp on my late 2008 Macbook Pro, I can see the shared network drive on the Time Capsule, but when I try to access it it just freezes Windows Explorer and I have to forcibly terminate the explorer process. Is there a trick t

  • Put Key Command Problem

    Hi everyone , I'm trying to change my card's default key to some other key . My card supports GP 2.1.1 and JCRE 2.2.1 My default keys are : I've tried put key command (after opening secure channel ) with defferent P1 and P2 and key versions but I rec

  • Please HELP, imac flat panel email sooo slow, locks up

    Hi There, I have read soo many discussions but still can't real find the help i need. I have a flat panel 17 inch imac running 10.2.8. It has been fine for the last 4 years, but just in the past month or so it has been very annoying. It seems to be m