Re: [Tutor] Want to keep to two decimal places for currency

2013-10-24 Thread Marc Tompkins
On Thu, Oct 24, 2013 at 1:21 PM, Marc Tompkins wrote: > On Thu, Oct 24, 2013 at 11:25 AM, bob gailer wrote: > >> On 10/24/2013 2:09 PM, Danny Yoo wrote: >> >>> Related: I saw a picture the other day on Google+ of an mailing envelope >>> whose zip code was written in scientific notation. >>> >> Th

Re: [Tutor] Want to keep to two decimal places for currency

2013-10-24 Thread Marc Tompkins
On Thu, Oct 24, 2013 at 11:25 AM, bob gailer wrote: > On 10/24/2013 2:09 PM, Danny Yoo wrote: > >> Related: I saw a picture the other day on Google+ of an mailing envelope >> whose zip code was written in scientific notation. >> > That;s odd - since ZIP codes are character, not integer, > You'd

Re: [Tutor] Want to keep to two decimal places for currency

2013-10-24 Thread Jerry Hill
On Thu, Oct 24, 2013 at 2:25 PM, bob gailer wrote: > That;s odd - since ZIP codes are character, not integer, It's not that odd. US Zip codes are a sequence of digits. I've worked with plenty of databases where ZIP codes are held in Numeric columns. It's not the ideal format for ZIP codes, bec

Re: [Tutor] Want to keep to two decimal places for currency

2013-10-24 Thread bob gailer
On 10/24/2013 2:09 PM, Danny Yoo wrote: Related: I saw a picture the other day on Google+ of an mailing envelope whose zip code was written in scientific notation. That;s odd - since ZIP codes are character, not integer, -- Bob Gailer 919-636-4239 Chapel Hill NC ___

Re: [Tutor] Want to keep to two decimal places for currency

2013-10-24 Thread Danny Yoo
On Thu, Oct 24, 2013 at 9:37 AM, Shelby Martin wrote: > Thank you for your replies. I suspect the solution is a bit more advanced > than where I'm at now, which is chapter 2 of a beginner's book. > Probably because talking about the gory details would completely derail the conversation, as I did.

Re: [Tutor] Want to keep to two decimal places for currency

2013-10-24 Thread Shelby Martin
Thank you for your replies. I suspect the solution is a bit more advanced than where I'm at now, which is chapter 2 of a beginner's book. Not sure why the author chose to use examples using money calculations when other calculations that don't need rounding would have sufficed. I will have to revis

Re: [Tutor] Want to keep to two decimal places for currency

2013-10-23 Thread Danny Yoo
On Wed, Oct 23, 2013 at 4:13 PM, Alan Gauld wrote: > On 23/10/13 22:39, Shelby Martin wrote: > >> I've looked online but I'm confused - I need to keep it so that the >> following program limits the output to two decimal places since it deals >> in currency. >> > > Its generally a bad idea to use f

Re: [Tutor] Want to keep to two decimal places for currency

2013-10-23 Thread Alan Gauld
On 23/10/13 22:39, Shelby Martin wrote: I've looked online but I'm confused - I need to keep it so that the following program limits the output to two decimal places since it deals in currency. Its generally a bad idea to use floats when dealing with currency since they can introduce small err

[Tutor] Want to keep to two decimal places for currency

2013-10-23 Thread Shelby Martin
I've looked online but I'm confused - I need to keep it so that the following program limits the output to two decimal places since it deals in currency. How do I incorporate that into my current code below? The textbook I'm using doesn't describe how to do that. Thanks in advance. #Challenge Ch