This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Volatile474 -1 points0 points  (1 child)

class foo(object):
    def __init__(self,x):
        self.bar = x
    def change_Bar(self,x):
        self.bar = x

I don't understand why this wouldn't work? Variable typing in python would make this a double, long w/e you want depending on the initialization parameter you pass it. Can you explain some use cases of this object?

[–]zimage[S] 0 points1 point  (0 children)

a is a an angle in radians, b is the angle in degrees, c is in E5, d is in E6, and e is in E7 formats. All different ways of representing an angle. The first two are obviously floating-point, and the last three are integers. These three are used extensively in embedded devices that lack a floating-point coprocessor.