|Bill Allombert on Fri, 28 May 2010 18:25:45 +0200|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: integer representation in pari|
On Fri, May 28, 2010 at 11:13:11AM -0400, Sam Steingold wrote: > Hi, > > On 5/27/10, Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr> wrote: > > > > You can also check whether the C macro PARI_KERNEL_GMP is defined, > > but usually it is better to use int_W() to acces the mantissa. > > thanks! > can I also use int_W to access the mantissa of a t_REAL? > (it never explicitly says that, but ...) No you cannot. t_REAL mantissa is always in HIGH bytes first, so this would not work with the GMP kernel. Note that t_REAL mantissa is normalized (i.e. first bit is one). Cheers, Bill.