Thanks Chris. Nevertheless, I believe it is a different error, as it
manifest itself for very small values such as 10 and 5 in this example:
  pdl> p 10%5
  0 
  pdl> p longlong(10)%longlong(5)
  45219840 
  pdl> p longlong(10)/longlong(5)
  2 
The quotient is correct, but the remainder isn't.

Best regards,
Luis


On Mon, Feb 16, 2015 at 05:41:00PM -0500, Chris Marshall wrote:
> Hi Luis-
> 
> I think you are tickling one of the known issues
> with proper longlong type support in PDL.  Here
> is the original bug report (but I don't know if
> your problem comes about in exactly the same fashion).
> At any rate, it is definitely a wart on the longlong
> support.
> 
>   http://sourceforge.net/p/pdl/bugs/343/
>   #343 longlong constructor and display lose digits due to implicit double
> precision conversions
> 
> Regards,
> Chris

-- 

                                                                  o
W. Luis Mochán,                      | tel:(52)(777)329-1734     /<(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388     `>/   /\
Apdo. Postal 48-3, 62251             |                           (*)/\/  \
Cuernavaca, Morelos, México          | [email protected]   /\_/\__/
Consider using GnuPrivacyGuard https://www.gnupg.org/
My key: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB, yours?




_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to