Re: Reg: Controlling number of Precision digits

2014-08-26 Thread Nagarjuna Vissarapu
If you want to convert 232879.7979879 to 232879.79 use BigDecimal class On Tue, Aug 26, 2014 at 2:24 PM, upd r wrote: > Hi, > > Can someone please tell me if there is a way to alter the precision digits > for a double/float data type to 2 or 3. > Eg: 232879.7979879 to 232879.79 > > Thanks, > UP

Re: Reg: Controlling number of Precision digits

2014-08-26 Thread upd r
Thanks Bala. On Tue, Aug 26, 2014 at 11:31 AM, Bala Krishna Gangisetty < b...@altiscale.com> wrote: > I suppose your query is against HIVE, you can take advantage of round() > built-in UDF function. > > --Bala G. > > > On Tue, Aug 26, 2014 at 11:24 AM, upd r wrote: > >> Hi, >> >> Can someone

Re: Reg: Controlling number of Precision digits

2014-08-26 Thread Bala Krishna Gangisetty
I suppose your query is against HIVE, you can take advantage of round() built-in UDF function. --Bala G. On Tue, Aug 26, 2014 at 11:24 AM, upd r wrote: > Hi, > > Can someone please tell me if there is a way to alter the precision digits > for a double/float data type to 2 or 3. > Eg: 232879.79