Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'beginner': 0.05; 'lawrence': 0.09; 'links.': 0.09; 'raises': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'strings.': 0.09; 'language.': 0.14; 'question.': 0.14; "(you're": 0.16; 'display,': 0.16; 'joys': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'looks': 0.24; 'references': 0.26; 'suggested': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'converting': 0.30; 'loads': 0.31; 'subject:with': 0.35; 'but': 0.35; 'there': 0.35; 'useful': 0.36; 'thanks': 0.36; 'list': 0.37; 'handle': 0.38; 'to:addr:python-list': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'received:org': 0.40; 'numbers': 0.61; "you'll": 0.62; 'our': 0.64; 'more': 0.64; 'charset:windows-1252': 0.65; 'money': 0.72; 'calculations': 0.84; 'computers.': 0.84; 'start.': 0.84; 'demand': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Working with decimals Date: Sat, 23 Aug 2014 21:31:51 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-212-253.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408825932 news.xs4all.nl 2965 [2001:888:2000:d::a6]:37871 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76897 On 23/08/2014 20:48, Seymore4Head wrote: > > Thanks for the links. The python-course looks like a beginner start. > It raises one more question. > > Some have suggested using strings. I understand that strings and > numbers are not the same thing. I know that converting numbers to > strings can be useful for display, but you would think that there > would be enough demand for a built in set of instructions that handle > money calculations accurately. > The joys of floating point numbers (you're calling them decimals) on computers. Search the archives of this list and you'll find loads of references which will explain them far better than I can. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence