Z3
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
api
java
RatNum.java
Go to the documentation of this file.
1
18
package
com.microsoft.z3;
19
20
import
java.math.BigInteger;
21
25
public
class
RatNum
extends
RealExpr
26
{
30
public
IntNum
getNumerator
()
31
{
32
return
new
IntNum
(getContext(),
Native
.
getNumerator
(getContext().nCtx(),
33
getNativeObject()));
34
}
35
39
public
IntNum
getDenominator
()
40
{
41
return
new
IntNum
(getContext(),
Native
.
getDenominator
(getContext().nCtx(),
42
getNativeObject()));
43
}
44
48
public
BigInteger
getBigIntNumerator
()
49
{
50
IntNum
n =
getNumerator
();
51
return
new
BigInteger(n.
toString
());
52
}
53
57
public
BigInteger
getBigIntDenominator
()
58
{
59
IntNum
n =
getDenominator
();
60
return
new
BigInteger(n.
toString
());
61
}
62
68
public
String
toDecimalString
(
int
precision)
69
{
70
return
Native.getNumeralDecimalString(getContext().nCtx(), getNativeObject(),
71
precision);
72
}
73
77
public
String
toString
()
78
{
79
try
80
{
81
return
Native.getNumeralString(getContext().nCtx(), getNativeObject());
82
}
catch
(
Z3Exception
e)
83
{
84
return
"Z3Exception: "
+ e.getMessage();
85
}
86
}
87
88
RatNum
(
Context
ctx,
long
obj)
89
{
90
super(ctx, obj);
91
}
92
}
com.microsoft.z3.IntNum
Definition:
IntNum.java:25
com.microsoft.z3.RatNum.getBigIntNumerator
BigInteger getBigIntNumerator()
Definition:
RatNum.java:48
com.microsoft.z3.Native.getDenominator
static long getDenominator(long a0, long a1)
Definition:
Native.java:2576
com.microsoft.z3.Context
Definition:
Context.java:27
com.microsoft.z3.Native
Definition:
Native.java:4
com.microsoft.z3.RatNum.toString
String toString()
Definition:
RatNum.java:77
com.microsoft.z3.RatNum.getDenominator
IntNum getDenominator()
Definition:
RatNum.java:39
com.microsoft.z3.RatNum
Definition:
RatNum.java:25
com.microsoft.z3.RealExpr
Definition:
RealExpr.java:23
com.microsoft.z3.Native.getNumerator
static long getNumerator(long a0, long a1)
Definition:
Native.java:2567
com.microsoft.z3.Z3Exception
Definition:
Z3Exception.java:25
com.microsoft.z3.RatNum.getNumerator
IntNum getNumerator()
Definition:
RatNum.java:30
com.microsoft.z3.IntNum.toString
String toString()
Definition:
IntNum.java:66
com.microsoft.z3.RatNum.toDecimalString
String toDecimalString(int precision)
Definition:
RatNum.java:68
com.microsoft.z3.RatNum.getBigIntDenominator
BigInteger getBigIntDenominator()
Definition:
RatNum.java:57
Generated on Fri Apr 12 2019 11:38:36 for Z3 by
1.8.5