Re: [Tutor] Strange issue output not showing up as floats

2014-06-23 Thread Deb Wyatt
Not if you don't show us your code! never mind. I figured it out. I was using %d instead of %f in my print statements. duh. 'duh', indeed but how could we possibly have helped since you didn't post any print statements? In future post real code, real output and real errors.

Re: [Tutor] Strange issue output not showing up as floats

2014-06-23 Thread Alan Gauld
On 23/06/14 01:32, Deb Wyatt wrote: In future post real code, real output and real errors. That way we have some chance of helping you. -- I know, i'm sorry. I was avoiding posting the actual code because it was an assignment, Its even more important for assignments because without real

[Tutor] Strange issue output not showing up as floats

2014-06-21 Thread Deb Wyatt
Hello. I hope everyone is having a good day. I am working on an assignment that is supposed to output floats. I'm using floats in the computations and according to Python's rules the output should be floats, but it's not. When I test in Python shell the calculations display correctly, as

Re: [Tutor] Strange issue output not showing up as floats

2014-06-21 Thread Jay Lozier
On 06/20/2014 07:59 PM, Deb Wyatt wrote: Hello. I hope everyone is having a good day. I am working on an assignment that is supposed to output floats. I'm using floats in the computations and according to Python's rules the output should be floats, but it's not. When I test in Python

Re: [Tutor] Strange issue output not showing up as floats

2014-06-21 Thread Alan Gauld
On 21/06/14 00:59, Deb Wyatt wrote: I see you solved it but for future reference... I'm using Python 2.7 for this assignment. input is as follows (not in code order): balance = 4213 annualInterestRate = 0.2 monthlyPaymentRate = 0.04 payment = monthlyPaymentRate * balance balance = balance -