Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'true,': 0.05; 'binary': 0.07; 'converted': 0.09; 'integers': 0.09; 'assume': 0.14; 'printing.': 0.16; 'relevant,': 0.16; 'subject:search': 0.16; 'wrote:': 0.18; 'addition,': 0.20; 'header:User-Agent:1': 0.23; "haven't": 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'usually': 0.31; 'decimal': 0.31; 'default,': 0.31; 'division': 0.31; 'worked': 0.33; 'operations': 0.35; 'but': 0.35; 'there': 0.35; 'done': 0.36; 'machines': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'course.': 0.60; 'email addr:gmail.com': 0.63; 'such': 0.63; 'charset:windows-1252': 0.65; 'received:74.208': 0.68; 'lately,': 0.84; 'subject:find': 0.84; 'subject:Best': 0.91 Date: Tue, 07 Apr 2015 11:04:37 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Best search algorithm to find condition within a range References: <2e3a3c01-20b3-4948-9b32-bd80ed46822b@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:D8tOWhNjEvB6stpNWJVpq4mFEhG4+Qel3uir18aukna2+ZEG9pk VHA/0bdZO0Tn1Fv9XyQscNxPyc3wOSYhCCsF5plqe9QroyfpL1BOcm5W4GVKWmavyOucqbx L6aN0RcY8FKiiyWzxdlzh+5nFhNICdOlALAj3oDFf3pLF+Sj6tF1vkcB1ENPPZnTTE1ChVb Cd0FMeeJMCPgWNdm0fL/g== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1428419094 news.xs4all.nl 2878 [2001:888:2000:d::a6]:57860 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:88588 On 04/07/2015 10:36 AM, jonas.thornvall@gmail.com wrote: > All operations on integers addition, subtraction, multiplication and division assume base 10. > There have been machines where that was true, but I haven't worked on such for about 30 years. On any machines I've programmed lately, the arithmetic is done in binary by default, and only converted to decimal for printing. Not that the internal base is usually relevant, of course. -- DaveA