[scilab-Users] format(): limit of the number of digits
Serge Steer
serge.steer at inria.fr
Wed Feb 29 21:08:01 CET 2012
In Scilab the computations are done using double precision floating points which have a relative tolerance near 1e-16. So digits with rank greater than 16 are generally wrong.
To display more digits one can use the mprintf function
-->mprintf("pi=%.40f",%pi)
pi=3.1415926535897931159979634685441851615906
But most of them are wrong.
Serge Steer
INRIA
----- Mail original -----
> De: "jonas" <jonathanattia at gmail.com>
> À: users at lists.scilab.org
> Envoyé: Mercredi 29 Février 2012 20:45:41
> Objet: [scilab-Users] format(): limit of the number of digits
> Hi everyone:
>
> Is it possible to remove (or reduce) the limit of the number of digits
> (max.
> 25) on the "format([type],[long])"?
> Indeed, I would make a primality test on "numbers calculated" to more
> than
> 25 digits (2.275088307942293793D+58).
>
> Thank you in advance for your help.
>
> Best Regards,
> Jonas.
>
> --
> View this message in context:
> http://mailinglists.scilab.org/format-limit-of-the-number-of-digits-tp3788380p3788380.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
> users-unsubscribe at lists.scilab.org
> To check the archives of this mailing list, see
> http://mailinglists.scilab.org/
More information about the users
mailing list