2009/3/30 Chris Castillo :
> yeah that function would help but how would I join both sides again to get a
> decimal real(float) to round?
>
> for example myfloat = decnum1, ".", decnum2 doesn't work because the string
> "." isn't a valid int type. how would I join those to be a float again?
The ea
yeah that function would help but how would I join both sides again to get a
decimal real(float) to round?
for example myfloat = decnum1, ".", decnum2 doesn't work because the string
"." isn't a valid int type. how would I join those to be a float again?
On Sun, Mar 29, 2009 at 10:46 PM, John Fou
2009/3/30 Chris Castillo :
> that is what I have so far but I need to create a condition where I need
> only 10 sufficient numbers from the variable decnum2. I know I need
> something like
> if len(decnum2) > 11:
> decnum2 = decnum2[0:11]
Perhaps the round() function will help?
>>> round(1234
myinput = raw_input("Please enter a binary real number: ")
myinput = myinput.split(".")
binstr1 = myinput[0]
binstr2 = myinput[1]
decnum1 = 0
decnum2 = 0
for i in binstr1:
decnum1 = decnum1 * 2 + int(i)
for k in binstr2:
decnum2 = decnum2 * 2 + int(k)
print "\nThe binary real number
On Sun, Mar 29, 2009 at 3:11 PM, andré palma wrote:
> Hey, i was trying to install python d2xx files but i got an error saying:
What is d2xx? Be more specific about what you are trying to install.
Kent
___
Tutor maillist - Tutor@python.org
http://m
Hey, i was trying to install python d2xx files but i got an error saying:
ImportError: No module named conf
"from conf import * " <--- the error line.
I've already searched for this module but i didn't find anything. Anyone
have an idea why is this about?
_
Title: Signature.html
W W wrote:
On Sat, Mar 28, 2009 at 9:47 AM, Wayne
Watson
wrote:
Hi, that's an interesting way
to look at it. Actually, I was about to
probe the color idea myself, but needed to better understand how to
achieve it. Where did grid_c
I think you're looking for refactoring features, in this particular
case, a compose method/function refactor.
Generally, generic editors will have trouble doing this right since it
requires some inferencing capability on the selected code, your best
bet is probably googling Python-aware IDEs with
On Sat, Mar 28, 2009 at 5:34 AM, Martin Klimach
wrote:
> Is there a python editor, that can automatically turn a selection of
> code into a function? Matching the input and return variables?
>
>
I've never heard of one. I suppose you could probably write your own using
regexes perhaps.
-Wayne
_