> frustration to figure out the problem, I just began explicitly
> type-casting as many variables as I could, and missed the fact that
I
Must be something about the mornings but I seem to be pickier then...
When you say type-casting that is a C term used to describe a horrible
operation that fool
Phew -- thanks, Ziyad. That did the trick all right. In my
frustration to figure out the problem, I just began explicitly
type-casting as many variables as I could, and missed the fact that I
had done the same to this as well.
Thanks again,
Dan
On 9-Jun-05, at 7:32 PM, ZIYAD A. M. AL-BATLY -
[EMAIL PROTECTED] wrote:
> Hi there,
>
> I'm in the process of learning Python, and need some help deciphering
> the reason why the following code doesn't work:
Ziyad has answered your immediate question but I have a few more comments.
>
> import sys, string
>
> def dec2bin(decNum):
> #
On Thu, 2005-06-09 at 18:16 -0600, [EMAIL PROTECTED]
wrote:
> Hi there,
>
> I'm in the process of learning Python, and need some help deciphering
> the reason why the following code doesn't work:
> int(num) = int(num) / 2 # this is integer division, so we truncate the
> decimal part
Here's