Go to the documentation of this file.00001
00018 package com.microsoft.z3;
00019
00023 public class AlgebraicNum extends ArithExpr
00024 {
00035 public RatNum toUpper(int precision)
00036 {
00037
00038 return new RatNum(getContext(), Native.getAlgebraicNumberUpper(getContext()
00039 .nCtx(), getNativeObject(), precision));
00040 }
00041
00052 public RatNum toLower(int precision)
00053 {
00054
00055 return new RatNum(getContext(), Native.getAlgebraicNumberLower(getContext()
00056 .nCtx(), getNativeObject(), precision));
00057 }
00058
00066 public String toDecimal(int precision)
00067 {
00068
00069 return Native.getNumeralDecimalString(getContext().nCtx(), getNativeObject(),
00070 precision);
00071 }
00072
00073 AlgebraicNum(Context ctx, long obj)
00074 {
00075 super(ctx, obj);
00076
00077 }
00078 }