That was the default value I get from the link you pointed to me. I will 
change it to be default to MAXIMUM_PRECISION.

On 02/26/2013 04:01 PM, James Taylor wrote:
>
> In src/main/java/com/salesforce/phoenix/schema/PDataType.java:
>
> > @@ -1682,6 +1794,11 @@ public int putLong(long v, byte[] b, int o) {
> >          }
> >      }
> >
> > +    public static final int MAX_PRECISION = 18; // Max precision guaranteed to fit into a long (and this should be plenty)
> > +    public static final MathContext DEFAULT_MATH_CONTEXT = new MathContext(MAX_PRECISION, RoundingMode.HALF_UP);
> > +    public static final int DEFAULT_PRECISION = 5;
>
> Why 5? I think if precision isn't specified, we need to store the 
> precision as is, based on whatever number we're given
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/forcedotcom/phoenix/pull/72/files#r3163672>.
>