<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=ISO-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19190"></HEAD>
<BODY bgColor=#ffffff text=#330000>
<DIV><SPAN class=687365316-01032012><FONT color=#0000ff size=2 face=Arial>Thanks
Adrien,</FONT></SPAN></DIV>
<DIV><SPAN class=687365316-01032012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=687365316-01032012><FONT color=#0000ff size=2 face=Arial>I
didn't know about these packages. Certainly mpscilab (if it works) should
solve Jonas' problem. It would appear to implement the sort of scheme I
was talking about. Maybe Jonas could try it out and report back with some
results?</FONT></SPAN></DIV>
<DIV><SPAN class=687365316-01032012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=687365316-01032012><FONT color=#0000ff size=2
face=Arial>Cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=687365316-01032012><FONT color=#0000ff size=2
face=Arial>Mike.</FONT></SPAN></DIV>
<DIV><SPAN class=687365316-01032012></SPAN> </DIV>
<BLOCKQUOTE>
<DIV dir=ltr class=OutlookMessageHeader align=left><FONT size=2
face=Tahoma>-----Original Message-----<BR><B>From:</B> Adrien Vogt-Schilb
[mailto:vogt@centre-cired.fr]<BR><B>Sent:</B> 01 March 2012
13:45<BR><B>To:</B> users@lists.scilab.org<BR><B>Subject:</B> Re:
[scilab-Users] Re: format(): limit of the number of
digits<BR><BR></FONT></DIV>There are also<BR><A class=moz-txt-link-freetext
href="http://atoms.scilab.org/toolboxes/dbldbl">http://atoms.scilab.org/toolboxes/dbldbl</A>
: for double double precision, maintained by a member of the scilab team,
and<BR><BR><A class=moz-txt-link-freetext
href="http://atoms.scilab.org/toolboxes/DD_QD">http://atoms.scilab.org/toolboxes/DD_QD</A>
which says it goes as far as quadruple double precision.<BR><BR>Hope one of
these helps<BR><BR>On 01/03/2012 14:40, Adrien Vogt-Schilb wrote:
<BLOCKQUOTE cite=mid:4F4F7C4D.6030902@centre-cired.fr
type="cite">Hi<BR><BR>I am not sure, but maybe this toolbo may help<BR><A
class=moz-txt-link-freetext
href="http://atoms.scilab.org/toolboxes/mpscilab"
moz-do-not-send="true">http://atoms.scilab.org/toolboxes/mpscilab</A><BR><BR>It
says it is for arbitrary precision calculus.<BR><BR><BR>On 01/03/2012 13:09,
Mike Page wrote:
<BLOCKQUOTE cite=mid:LKECIGCCKNOMMCKAGNOAOEKPDKAA.Mike@Page-One.Waitrose.com
type="cite"><PRE wrap="">Hi Jonas,
I don't think you can do that. The longest native integer type is (AFAIK)
32 bits. This will only hold about 9 decimal digits. So the result of
factorial 24 in integer form would be an overflow.
-->i=int32(factorial(24))
i =
-2147483648
while
-->i=int32(factorial(12))
i =
479001600
works correctly and is the limit of how far you can get with an integer
type.
As I mentioned before, the only way I know to go beyond these limits is to
do your own arithmetic with a structured type holding the extended words of
the data. If your arithmetic is complicated, then this would be hard.
Maybe Scilab is not the best tool for your purposes? You can find some
information about this problem in Wikipedia
(<A class=moz-txt-link-freetext href="http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic" moz-do-not-send="true">http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic</A>).
HTH
Mike.
-----Original Message-----
From: jonas [<A class=moz-txt-link-freetext href="mailto:jonathanattia@gmail.com" moz-do-not-send="true">mailto:jonathanattia@gmail.com</A>]
Sent: 01 March 2012 11:50
To: <A class=moz-txt-link-abbreviated href="mailto:users@lists.scilab.org" moz-do-not-send="true">users@lists.scilab.org</A>
Subject: [scilab-Users] Re: format(): limit of the number of digits
Thank you for your post.
This syntax/function is valid for a floating-point number.
How can I get a high number of digits for a positive integer?
Here's a numerical example: factorial(24) = 6.204484017332394100D+23
Thank you in advance.
Best regards,
Jonas.
--
View this message in context:
<A class=moz-txt-link-freetext href="http://mailinglists.scilab.org/format-limit-of-the-number-of-digits-tp378838" moz-do-not-send="true">http://mailinglists.scilab.org/format-limit-of-the-number-of-digits-tp378838</A>
0p3790178.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
--
To unsubscribe from this mailing-list, please send an empty mail to
<A class=moz-txt-link-abbreviated href="mailto:users-unsubscribe@lists.scilab.org" moz-do-not-send="true">users-unsubscribe@lists.scilab.org</A>
To check the archives of this mailing list, see
<A class=moz-txt-link-freetext href="http://mailinglists.scilab.org/" moz-do-not-send="true">http://mailinglists.scilab.org/</A>
--
To unsubscribe from this mailing-list, please send an empty mail to
<A class=moz-txt-link-abbreviated href="mailto:users-unsubscribe@lists.scilab.org" moz-do-not-send="true">users-unsubscribe@lists.scilab.org</A>
To check the archives of this mailing list, see
<A class=moz-txt-link-freetext href="http://mailinglists.scilab.org/" moz-do-not-send="true">http://mailinglists.scilab.org/</A>
</PRE></BLOCKQUOTE><BR></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML>