<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_102) on Wed Oct 19 15:34:02 PDT 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>HiveDecimal (Hive Storage API 2.1.1-pre-orc API)</title>
<meta name="date" content="2016-10-19">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="HiveDecimal (Hive Storage API 2.1.1-pre-orc API)";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":10,"i13":10,"i14":9,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/HiveDecimal.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveIntervalDayTime.html" title="class in org.apache.hadoop.hive.common.type"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/hadoop/hive/common/type/HiveDecimal.html" target="_top">Frames</a></li>
<li><a href="HiveDecimal.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.hadoop.hive.common.type</div>
<h2 title="Class HiveDecimal" class="title">Class HiveDecimal</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.hadoop.hive.common.type.HiveDecimal</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&gt;</dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">HiveDecimal</span>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&gt;</pre>
<div class="block">HiveDecimal. Simple wrapper for BigDecimal. Adds fixed max precision and non scientific string
 representation</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#MAX_PRECISION">MAX_PRECISION</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#MAX_SCALE">MAX_SCALE</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#ONE">ONE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#ROUND_CEILING">ROUND_CEILING</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#ROUND_FLOOR">ROUND_FLOOR</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#ROUND_HALF_EVEN">ROUND_HALF_EVEN</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#ROUND_HALF_UP">ROUND_HALF_UP</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#SYSTEM_DEFAULT_PRECISION">SYSTEM_DEFAULT_PRECISION</a></span></code>
<div class="block">Default precision/scale when system is not able to determine them, such as in case
  of a non-generic udf.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#SYSTEM_DEFAULT_SCALE">SYSTEM_DEFAULT_SCALE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#USER_DEFAULT_PRECISION">USER_DEFAULT_PRECISION</a></span></code>
<div class="block">Default precision/scale when user doesn't specify in the column metadata, such as
 decimal and decimal(8).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#USER_DEFAULT_SCALE">USER_DEFAULT_SCALE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#ZERO">ZERO</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#abs--">abs</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#add-org.apache.hadoop.hive.common.type.HiveDecimal-">add</a></span>(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#bigDecimalValue--">bigDecimalValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#byteValue--">byteValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#compareTo-org.apache.hadoop.hive.common.type.HiveDecimal-">compareTo</a></span>(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#create-java.math.BigDecimal-">create</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;b)</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#create-java.math.BigDecimal-boolean-">create</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;b,
      boolean&nbsp;allowRounding)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#create-java.math.BigInteger-">create</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a>&nbsp;bi)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#create-java.math.BigInteger-int-">create</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a>&nbsp;unscaled,
      int&nbsp;scale)</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#create-int-">create</a></span>(int&nbsp;i)</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#create-long-">create</a></span>(long&nbsp;l)</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#create-java.lang.String-">create</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dec)</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#divide-org.apache.hadoop.hive.common.type.HiveDecimal-">divide</a></span>(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#doubleValue--">doubleValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#enforcePrecisionScale-org.apache.hadoop.hive.common.type.HiveDecimal-int-int-">enforcePrecisionScale</a></span>(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec,
                     int&nbsp;maxPrecision,
                     int&nbsp;maxScale)</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#equals-java.lang.Object-">equals</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</code>&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#floatValue--">floatValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#hashCode--">hashCode</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#intValue--">intValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#longValue--">longValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#multiply-org.apache.hadoop.hive.common.type.HiveDecimal-">multiply</a></span>(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</code>&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#negate--">negate</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#pow-int-">pow</a></span>(int&nbsp;n)</code>&nbsp;</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#precision--">precision</a></span>()</code>
<div class="block">Returns the number of digits (integer and fractional) in the number, which is equivalent
 to SQL decimal precision.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#remainder-org.apache.hadoop.hive.common.type.HiveDecimal-">remainder</a></span>(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</code>&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#scale--">scale</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#scaleByPowerOfTen-int-">scaleByPowerOfTen</a></span>(int&nbsp;n)</code>&nbsp;</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#setScale-int-">setScale</a></span>(int&nbsp;i)</code>&nbsp;</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#setScale-int-int-">setScale</a></span>(int&nbsp;adjustedScale,
        int&nbsp;rm)</code>&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#shortValue--">shortValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#signum--">signum</a></span>()</code>
<div class="block">Get the sign of the underlying decimal.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#subtract-org.apache.hadoop.hive.common.type.HiveDecimal-">subtract</a></span>(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</code>&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#toFormatString-int-">toFormatString</a></span>(int&nbsp;scale)</code>
<div class="block">Return a string representation of the number with the number of decimal digits as
 the given scale.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html#unscaledValue--">unscaledValue</a></span>()</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="MAX_PRECISION">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MAX_PRECISION</h4>
<pre>public static final&nbsp;int MAX_PRECISION</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hive.common.type.HiveDecimal.MAX_PRECISION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="MAX_SCALE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MAX_SCALE</h4>
<pre>public static final&nbsp;int MAX_SCALE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hive.common.type.HiveDecimal.MAX_SCALE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="USER_DEFAULT_PRECISION">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>USER_DEFAULT_PRECISION</h4>
<pre>public static final&nbsp;int USER_DEFAULT_PRECISION</pre>
<div class="block">Default precision/scale when user doesn't specify in the column metadata, such as
 decimal and decimal(8).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hive.common.type.HiveDecimal.USER_DEFAULT_PRECISION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="USER_DEFAULT_SCALE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>USER_DEFAULT_SCALE</h4>
<pre>public static final&nbsp;int USER_DEFAULT_SCALE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hive.common.type.HiveDecimal.USER_DEFAULT_SCALE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="SYSTEM_DEFAULT_PRECISION">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SYSTEM_DEFAULT_PRECISION</h4>
<pre>public static final&nbsp;int SYSTEM_DEFAULT_PRECISION</pre>
<div class="block">Default precision/scale when system is not able to determine them, such as in case
  of a non-generic udf.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hive.common.type.HiveDecimal.SYSTEM_DEFAULT_PRECISION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="SYSTEM_DEFAULT_SCALE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SYSTEM_DEFAULT_SCALE</h4>
<pre>public static final&nbsp;int SYSTEM_DEFAULT_SCALE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hive.common.type.HiveDecimal.SYSTEM_DEFAULT_SCALE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ZERO">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ZERO</h4>
<pre>public static final&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a> ZERO</pre>
</li>
</ul>
<a name="ONE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ONE</h4>
<pre>public static final&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a> ONE</pre>
</li>
</ul>
<a name="ROUND_FLOOR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ROUND_FLOOR</h4>
<pre>public static final&nbsp;int ROUND_FLOOR</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hive.common.type.HiveDecimal.ROUND_FLOOR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ROUND_CEILING">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ROUND_CEILING</h4>
<pre>public static final&nbsp;int ROUND_CEILING</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hive.common.type.HiveDecimal.ROUND_CEILING">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ROUND_HALF_UP">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ROUND_HALF_UP</h4>
<pre>public static final&nbsp;int ROUND_HALF_UP</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hive.common.type.HiveDecimal.ROUND_HALF_UP">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ROUND_HALF_EVEN">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ROUND_HALF_EVEN</h4>
<pre>public static final&nbsp;int ROUND_HALF_EVEN</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hive.common.type.HiveDecimal.ROUND_HALF_EVEN">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="create-java.math.BigDecimal-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;create(<a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;b)</pre>
</li>
</ul>
<a name="create-java.math.BigDecimal-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;create(<a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;b,
                                 boolean&nbsp;allowRounding)</pre>
</li>
</ul>
<a name="create-java.math.BigInteger-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;create(<a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a>&nbsp;unscaled,
                                 int&nbsp;scale)</pre>
</li>
</ul>
<a name="create-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;create(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dec)</pre>
</li>
</ul>
<a name="create-java.math.BigInteger-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;create(<a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a>&nbsp;bi)</pre>
</li>
</ul>
<a name="create-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;create(int&nbsp;i)</pre>
</li>
</ul>
<a name="create-long-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;create(long&nbsp;l)</pre>
</li>
</ul>
<a name="toString--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="toFormatString-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toFormatString</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toFormatString(int&nbsp;scale)</pre>
<div class="block">Return a string representation of the number with the number of decimal digits as
 the given scale. Please note that this is different from toString().</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>scale</code> - the number of digits after the decimal point</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the string representation of exact number of decimal digits</dd>
</dl>
</li>
</ul>
<a name="setScale-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setScale</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;setScale(int&nbsp;i)</pre>
</li>
</ul>
<a name="compareTo-org.apache.hadoop.hive.common.type.HiveDecimal-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareTo</h4>
<pre>public&nbsp;int&nbsp;compareTo(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true#compareTo-T-" title="class or interface in java.lang">compareTo</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="hashCode--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="scale--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scale</h4>
<pre>public&nbsp;int&nbsp;scale()</pre>
</li>
</ul>
<a name="precision--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>precision</h4>
<pre>public&nbsp;int&nbsp;precision()</pre>
<div class="block">Returns the number of digits (integer and fractional) in the number, which is equivalent
 to SQL decimal precision. Note that this is different from BigDecimal.precision(),
 which returns the precision of the unscaled value (BigDecimal.valueOf(0.01).precision() = 1,
 whereas HiveDecimal.create("0.01").precision() = 2).
 If you want the BigDecimal precision, use HiveDecimal.bigDecimalValue().precision()</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
</dl>
</li>
</ul>
<a name="intValue--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intValue</h4>
<pre>public&nbsp;int&nbsp;intValue()</pre>
</li>
</ul>
<a name="doubleValue--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doubleValue</h4>
<pre>public&nbsp;double&nbsp;doubleValue()</pre>
</li>
</ul>
<a name="longValue--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>longValue</h4>
<pre>public&nbsp;long&nbsp;longValue()</pre>
</li>
</ul>
<a name="shortValue--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shortValue</h4>
<pre>public&nbsp;short&nbsp;shortValue()</pre>
</li>
</ul>
<a name="floatValue--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>floatValue</h4>
<pre>public&nbsp;float&nbsp;floatValue()</pre>
</li>
</ul>
<a name="bigDecimalValue--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bigDecimalValue</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;bigDecimalValue()</pre>
</li>
</ul>
<a name="byteValue--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>byteValue</h4>
<pre>public&nbsp;byte&nbsp;byteValue()</pre>
</li>
</ul>
<a name="setScale-int-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setScale</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;setScale(int&nbsp;adjustedScale,
                            int&nbsp;rm)</pre>
</li>
</ul>
<a name="subtract-org.apache.hadoop.hive.common.type.HiveDecimal-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>subtract</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;subtract(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</pre>
</li>
</ul>
<a name="multiply-org.apache.hadoop.hive.common.type.HiveDecimal-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>multiply</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;multiply(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</pre>
</li>
</ul>
<a name="unscaledValue--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unscaledValue</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a>&nbsp;unscaledValue()</pre>
</li>
</ul>
<a name="scaleByPowerOfTen-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scaleByPowerOfTen</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;scaleByPowerOfTen(int&nbsp;n)</pre>
</li>
</ul>
<a name="abs--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>abs</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;abs()</pre>
</li>
</ul>
<a name="negate--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>negate</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;negate()</pre>
</li>
</ul>
<a name="add-org.apache.hadoop.hive.common.type.HiveDecimal-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;add(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</pre>
</li>
</ul>
<a name="pow-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pow</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;pow(int&nbsp;n)</pre>
</li>
</ul>
<a name="remainder-org.apache.hadoop.hive.common.type.HiveDecimal-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remainder</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;remainder(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</pre>
</li>
</ul>
<a name="divide-org.apache.hadoop.hive.common.type.HiveDecimal-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>divide</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;divide(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec)</pre>
</li>
</ul>
<a name="signum--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>signum</h4>
<pre>public&nbsp;int&nbsp;signum()</pre>
<div class="block">Get the sign of the underlying decimal.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>0 if the decimal is equal to 0, -1 if less than zero, and 1 if greater than 0</dd>
</dl>
</li>
</ul>
<a name="enforcePrecisionScale-org.apache.hadoop.hive.common.type.HiveDecimal-int-int-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>enforcePrecisionScale</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;enforcePrecisionScale(<a href="../../../../../../org/apache/hadoop/hive/common/type/HiveDecimal.html" title="class in org.apache.hadoop.hive.common.type">HiveDecimal</a>&nbsp;dec,
                                                int&nbsp;maxPrecision,
                                                int&nbsp;maxScale)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/HiveDecimal.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../../../../../org/apache/hadoop/hive/common/type/HiveIntervalDayTime.html" title="class in org.apache.hadoop.hive.common.type"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/hadoop/hive/common/type/HiveDecimal.html" target="_top">Frames</a></li>
<li><a href="HiveDecimal.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>
