Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~9K People Reached
Favorite Forums
Favorite Tags
Member Avatar for ALJ

Hi, I'm having trouble trying to figure out a code that converts negative decimal numbers to binary, as well as specifying the number of bits. For example. convert -18 using 8 bits. This should come out as 10010010 doing it manually, I think. I'd appreciate the help, thanks.

Member Avatar for klickagent
0
9K
Member Avatar for jai.mahadeokar

To get an ascii value of a char we have the ascii(c) function in curses.ascii module... but in the curses module _curses module is imported... which is not there in the library hence exception is being generated... can anyone kindly help.. or suggest any other method for conversion...

Member Avatar for jai.mahadeokar
0
105
Member Avatar for jai.mahadeokar

I am trying to use the function cmpfile of the cmp module which returns true or false if filepaths passed are same or not... But the interpreter flashes an error "undefined global name false"... Also it doesnt accept true or false in other functions also.. what might be the problem??? …

Member Avatar for Pierre Maurette
0
133
Member Avatar for Pačo
Member Avatar for Pačo
0
94
Member Avatar for prushik

This is my function for triangular collision checking. ship[i].x1 ship[i].x2 ship[i].x3 ship[i].y1 ship[i].y2 ship[i].y3 Are all integers missile[j].x missile[j].y Are doubles PI is a constant equal to 3.14159265 Everything compiles correctly, but for some reason a1, a2, and a3 all end up being equal to 0 Is there something wrong …

Member Avatar for prushik
0
167
Member Avatar for jliu66

Hi, Ny friends, This is my 2nd week to learn and wite codes in python. I encounter a debug error in the last line of code or SizeDiffE(k) = j . I could not figure out? I am using SPE IDE 0.8.3 to debug. for k in range(1, NoE): for …

Member Avatar for woooee
0
229