sumdigits(n,B) doesn't refuse B < -1

"Ruud H.G. van Tol" <[email protected]>
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <[email protected]>
? sumdigits(12345,-4)
% 5

Expected:

   ***   at top-level: sumdigits(12345,-4)
   ***                 ^------------------
   *** sumdigits: domain error in digits: B < 2
   ***   Break loop: type 'break' to go back to GP prompt
break>

-- Ruud
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.