-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
93 lines (69 loc) · 1.97 KB
/
__init__.py
File metadata and controls
93 lines (69 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
from __future__ import print_function
__all__ = ["BigDecimal", "BigInteger", "MathContext", "RoundingMode"]
from typing import Any, List
from java.lang import Enum, Number, Object
class BigDecimal(Number):
ONE = None # type: BigDecimal
TEN = None # type: BigDecimal
ZERO = None # type: BigDecimal
def __init__(self, *args):
# type: (*Any) -> None
super(BigDecimal, self).__init__()
print(args)
def doubleValue(self):
# type: () -> float
pass
def floatValue(self):
# type: () -> float
pass
def intValue(self):
# type: () -> int
pass
def longValue(self):
# type: () -> long
pass
class BigInteger(Number):
ONE = None # type: BigInteger
TEN = None # type: BigInteger
TWO = None # type: BigInteger
ZERO = None # type: BigInteger
def __init__(self, *args):
# type: (*Any) -> None
super(BigInteger, self).__init__()
print(args)
def doubleValue(self):
# type: () -> float
pass
def floatValue(self):
# type: () -> float
pass
def intValue(self):
# type: () -> int
pass
def longValue(self):
# type: () -> long
pass
class MathContext(Object):
def __init__(self, *args):
# type: (*Any) -> None
super(MathContext, self).__init__()
print(args)
def getPrecision(self):
# type: () -> int
pass
def getRoundingMode(self):
# type: () -> RoundingMode
pass
class RoundingMode(Enum):
CEILING = None # type: RoundingMode
DOWN = None # type: RoundingMode
FLOOR = None # type: RoundingMode
HALF_DOWN = None # type: RoundingMode
HALF_EVEN = None # type: RoundingMode
HALF_UP = None # type: RoundingMode
UNNECESSARY = None # type: RoundingMode
UP = None # type: RoundingMode
@staticmethod
def values():
# type: () -> List[RoundingMode]
pass