Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class dub(float):
- """Two data values stored as float, separated by decimal"""
- def __init__(self, decimal): self.value = decimal
- left = lambda self:int(str(self.value).split(".")[0])
- right = lambda self:int(str(self.value).split(".")[1])
- asTuple = lambda self:tuple(str(self.value).split("."))
- asList = lambda self:list(str(self.value).split("."))
- val1 = left
- val2 = right
- first = left
- second = right
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement