Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. BUG in Windows Calc [modified]

BUG in Windows Calc [modified]

Scheduled Pinned Locked Moved The Lounge
comsysadminwindows-admintoolshelp
64 Posts 36 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Hiren solanki

    Follow the procedure click '4' click 'sqrt' click '-'(Minus sign) click '2' Answer should be 0 But It comes back with '-8.1648465955514287168521180122928e-39' answer ;P [Edit] Tested with XP and Seven _[/More Edit] Windows Server 2008 R2 comes same with yet another answer '-1.068281969439142e-19' _[/More Edit] [/Edit]

    Rating is Always appreciated.
    Regards,
    Hiren Solanki.
    Indian Forum | My Articles | My Profile


    "You will always find me near 127.0.0.1"

    modified on Monday, November 1, 2010 7:00 AM

    B Offline
    B Offline
    Bassam Abdul Baki
    wrote on last edited by
    #11

    The Windows PowerToy Calc is slightly better.

    Sqrt(4) - 2 = 3.9378992339362513964719291444358459196643504626684867133312775132667336556050866493546387304075566414818330038038295060147049046413138657775207384487209999618622897470743768272532233306387808895650314543995525529065482320548203801311885605071904357825187703782014895108614888708459734293476714554362468810447809428975260776308251921152998341440712577547187250299521717400700236027297480547576700432251758684242034663903791398932294256110257450914185948984125441052563042008394844537793781156975099171360793772881e-532

    Web - BM - RSS - Math - LinkedIn

    H 1 Reply Last reply
    0
    • H Hiren solanki

      Follow the procedure click '4' click 'sqrt' click '-'(Minus sign) click '2' Answer should be 0 But It comes back with '-8.1648465955514287168521180122928e-39' answer ;P [Edit] Tested with XP and Seven _[/More Edit] Windows Server 2008 R2 comes same with yet another answer '-1.068281969439142e-19' _[/More Edit] [/Edit]

      Rating is Always appreciated.
      Regards,
      Hiren Solanki.
      Indian Forum | My Articles | My Profile


      "You will always find me near 127.0.0.1"

      modified on Monday, November 1, 2010 7:00 AM

      N Offline
      N Offline
      NMehta83
      wrote on last edited by
      #12

      Follow the procedure click '4' click 'sqrt' click '-'(Minus sign) click '2' ('-8.1648465955514287168521180122928e-39') click '+' click '2' Answer should be 2 and It shows 2 only :~

      NMehta83 “We cannot fail until we fail to try”

      H L 2 Replies Last reply
      0
      • B Bassam Abdul Baki

        The Windows PowerToy Calc is slightly better.

        Sqrt(4) - 2 = 3.9378992339362513964719291444358459196643504626684867133312775132667336556050866493546387304075566414818330038038295060147049046413138657775207384487209999618622897470743768272532233306387808895650314543995525529065482320548203801311885605071904357825187703782014895108614888708459734293476714554362468810447809428975260776308251921152998341440712577547187250299521717400700236027297480547576700432251758684242034663903791398932294256110257450914185948984125441052563042008394844537793781156975099171360793772881e-532

        Web - BM - RSS - Math - LinkedIn

        H Offline
        H Offline
        Hiren solanki
        wrote on last edited by
        #13

        It's hard to give you 5 . :laugh:

        Rating is Always appreciated.
        Regards,
        Hiren Solanki.
        Indian Forum | My Articles | My Profile


        "You will always find me near 127.0.0.1"

        D B 2 Replies Last reply
        0
        • H Hiren solanki

          It's hard to give you 5 . :laugh:

          Rating is Always appreciated.
          Regards,
          Hiren Solanki.
          Indian Forum | My Articles | My Profile


          "You will always find me near 127.0.0.1"

          D Offline
          D Offline
          Dalek Dave
          wrote on last edited by
          #14

          Give him a 4.958468546513654646854968435146814612321687 instead.

          ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

          N 1 Reply Last reply
          0
          • D Dalek Dave

            Give him a 4.958468546513654646854968435146814612321687 instead.

            ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

            N Offline
            N Offline
            NMehta83
            wrote on last edited by
            #15

            For this answer i will give you +5 :laugh:

            NMehta83 “We cannot fail until we fail to try”

            H D 2 Replies Last reply
            0
            • H Hiren solanki

              It's hard to give you 5 . :laugh:

              Rating is Always appreciated.
              Regards,
              Hiren Solanki.
              Indian Forum | My Articles | My Profile


              "You will always find me near 127.0.0.1"

              B Offline
              B Offline
              Bassam Abdul Baki
              wrote on last edited by
              #16

              Clicking the 5 is hard for you?

              Web - BM - RSS - Math - LinkedIn

              H 1 Reply Last reply
              0
              • B Bassam Abdul Baki

                Clicking the 5 is hard for you?

                Web - BM - RSS - Math - LinkedIn

                H Offline
                H Offline
                Hiren solanki
                wrote on last edited by
                #17

                It takes half and hour to reach to rating link. :laugh:

                Rating is Always appreciated.
                Regards,
                Hiren Solanki.
                Indian Forum | My Articles | My Profile


                "You will always find me near 127.0.0.1"

                N 1 Reply Last reply
                0
                • N NMehta83

                  For this answer i will give you +5 :laugh:

                  NMehta83 “We cannot fail until we fail to try”

                  D Offline
                  D Offline
                  Dalek Dave
                  wrote on last edited by
                  #18

                  Amd yet you haven't!

                  ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                  N 1 Reply Last reply
                  0
                  • N NMehta83

                    For this answer i will give you +5 :laugh:

                    NMehta83 “We cannot fail until we fail to try”

                    H Offline
                    H Offline
                    Hiren solanki
                    wrote on last edited by
                    #19

                    NMehta83 wrote:

                    i will give you +5

                    It's 10 minute already, still not deposited :laugh:

                    Rating is Always appreciated.
                    Regards,
                    Hiren Solanki.
                    Indian Forum | My Articles | My Profile


                    "You will always find me near 127.0.0.1"

                    1 Reply Last reply
                    0
                    • H Hiren solanki

                      It takes half and hour to reach to rating link. :laugh:

                      Rating is Always appreciated.
                      Regards,
                      Hiren Solanki.
                      Indian Forum | My Articles | My Profile


                      "You will always find me near 127.0.0.1"

                      N Offline
                      N Offline
                      NMehta83
                      wrote on last edited by
                      #20

                      Now have my another +5 :laugh:

                      NMehta83 “We cannot fail until we fail to try”

                      1 Reply Last reply
                      0
                      • N NMehta83

                        Follow the procedure click '4' click 'sqrt' click '-'(Minus sign) click '2' ('-8.1648465955514287168521180122928e-39') click '+' click '2' Answer should be 2 and It shows 2 only :~

                        NMehta83 “We cannot fail until we fail to try”

                        H Offline
                        H Offline
                        Hiren solanki
                        wrote on last edited by
                        #21

                        Looks like windows support person. take a 5.

                        Rating is Always appreciated.
                        Regards,
                        Hiren Solanki.
                        Indian Forum | My Articles | My Profile


                        "You will always find me near 127.0.0.1"

                        N 1 Reply Last reply
                        0
                        • D Dalek Dave

                          Amd yet you haven't!

                          ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                          N Offline
                          N Offline
                          NMehta83
                          wrote on last edited by
                          #22

                          I was laughing so i forgot...but now you can check :)

                          NMehta83 “We cannot fail until we fail to try”

                          1 Reply Last reply
                          0
                          • N NMehta83

                            Follow the procedure click '4' click 'sqrt' click '-'(Minus sign) click '2' ('-8.1648465955514287168521180122928e-39') click '+' click '2' Answer should be 2 and It shows 2 only :~

                            NMehta83 “We cannot fail until we fail to try”

                            L Offline
                            L Offline
                            leppie
                            wrote on last edited by
                            #23

                            I already said that... (but -2, same thing however).

                            ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                            1 Reply Last reply
                            0
                            • H Hiren solanki

                              Looks like windows support person. take a 5.

                              Rating is Always appreciated.
                              Regards,
                              Hiren Solanki.
                              Indian Forum | My Articles | My Profile


                              "You will always find me near 127.0.0.1"

                              N Offline
                              N Offline
                              NMehta83
                              wrote on last edited by
                              #24

                              nah!!!!!! After your post just playing with calc and got that. :)

                              NMehta83 “We cannot fail until we fail to try”

                              1 Reply Last reply
                              0
                              • D Dalek Dave

                                Hiren Solanki wrote:

                                Answer should be 0

                                Or -4!

                                ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                                K Offline
                                K Offline
                                Khaniya
                                wrote on last edited by
                                #25

                                Dalek Dave wrote:

                                Or -4!

                                why DD? can you explain?

                                Life's Like a mirror. Smile at it & it smiles back at you.- P Pilgrim So Smile Please

                                L 1 Reply Last reply
                                0
                                • H Hiren solanki

                                  Follow the procedure click '4' click 'sqrt' click '-'(Minus sign) click '2' Answer should be 0 But It comes back with '-8.1648465955514287168521180122928e-39' answer ;P [Edit] Tested with XP and Seven _[/More Edit] Windows Server 2008 R2 comes same with yet another answer '-1.068281969439142e-19' _[/More Edit] [/Edit]

                                  Rating is Always appreciated.
                                  Regards,
                                  Hiren Solanki.
                                  Indian Forum | My Articles | My Profile


                                  "You will always find me near 127.0.0.1"

                                  modified on Monday, November 1, 2010 7:00 AM

                                  R Offline
                                  R Offline
                                  Rhuros
                                  wrote on last edited by
                                  #26

                                  On Windows 7 In Standard Mode you get: -1.068281969439142e-19 In Scientific Mode you get: -8.1648465955514287168521180122928e-39

                                  1 Reply Last reply
                                  0
                                  • K Khaniya

                                    Dalek Dave wrote:

                                    Or -4!

                                    why DD? can you explain?

                                    Life's Like a mirror. Smile at it & it smiles back at you.- P Pilgrim So Smile Please

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #27

                                    The square root of 4 is either 2 or -2. -2 - 2 = -4.

                                    Every man can tell how many goats or sheep he possesses, but not how many friends.

                                    1 Reply Last reply
                                    0
                                    • L leppie

                                      Another fails the knowledge about floating point.... When will they ever learn????? Edit: It seems to happen with any rounding around 0. If your result is not 0, the result is correctly rounded, but with values very near 0, it simply 'forgets'.... Edit 2: Press = again, the answer will be -2 as expected confirming the previous value is not rounded correctly, but still good enough due to its 'smallness' (e-39 is very small).

                                      ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                                      modified on Monday, November 1, 2010 7:07 AM

                                      P Offline
                                      P Offline
                                      peterchen
                                      wrote on last edited by
                                      #28

                                      Actually, Calc internals have been replaced (around XP) with a long numbers library, so it is somehow noteworthy that this isn't enough. OTOH, the OP failed to notice tha 8e-39 is zero enough when playing around with square roots of 2.

                                      Agh! Reality! My Archnemesis![^]
                                      | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                                      L Q M 3 Replies Last reply
                                      0
                                      • P peterchen

                                        Actually, Calc internals have been replaced (around XP) with a long numbers library, so it is somehow noteworthy that this isn't enough. OTOH, the OP failed to notice tha 8e-39 is zero enough when playing around with square roots of 2.

                                        Agh! Reality! My Archnemesis![^]
                                        | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                                        L Offline
                                        L Offline
                                        leppie
                                        wrote on last edited by
                                        #29

                                        peterchen wrote:

                                        OTOH, the OP failed to notice tha 8e-39 is zero enough when playing around with square roots of 2.

                                        And that is why I cleverly did not point out who the FAILER actually was ;P

                                        ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                                        1 Reply Last reply
                                        0
                                        • P peterchen

                                          Actually, Calc internals have been replaced (around XP) with a long numbers library, so it is somehow noteworthy that this isn't enough. OTOH, the OP failed to notice tha 8e-39 is zero enough when playing around with square roots of 2.

                                          Agh! Reality! My Archnemesis![^]
                                          | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                                          Q Offline
                                          Q Offline
                                          QuiJohn
                                          wrote on last edited by
                                          #30

                                          peterchen wrote:

                                          Actually, Calc internals have been replaced (around XP) with a long numbers library, so it is somehow noteworthy that this isn't enough.

                                          I actually thought I heard it referred to as an "infinite precision" calculator. I've tested it before on values that would make the pre-XP calc choke, but apparently it's not infinite. Ah, googled it... apparently "arbitrary" precision is what it's called. I think MS changed it in the wake of that idiotic, much publicized and ultimately harmless Pentium "floating point" bug. People kept thinking they were finding more bugs, but they were just running into typical floating point inaccuracies.


                                          He said, "Boy I'm just old and lonely, But thank you for your concern, Here's wishing you a Happy New Year." I wished him one back in return.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups