[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
prod auto-conversion to double
From: |
Rik |
Subject: |
prod auto-conversion to double |
Date: |
Mon, 21 Oct 2013 14:59:19 -0700 |
10/21/13
All,
I was investigating factor() for large numbers above bitmax(), but still
below intmax(), and came across this behavior. Is this desirable? Should
we have a "native" option as we do for sum() so that the full precision can
be realized?
--Rik
Sample case:
x = int64 ([3, 107, 28059810762433]);
class (x)
ans = int64
y = prod (x)
y = 9007199254740992
class (y)
ans = double
x(1) * x(2) * x(3)
ans = 9007199254740993
- prod auto-conversion to double,
Rik <=