Skip to content
Prev 150206 / 398498 Next

Re : Re : float and double precision with C code

ok, sorry, my mistake was the C printf.
Thank you for your good answer

Regards



----- Message d'origine ----
De : JS Ubei <jsubei at yahoo.fr>
? : jim holtman <jholtman at gmail.com>
Cc : r-help at r-project.org
Envoy? le : Jeudi, 17 Juillet 2008, 15h25mn 07s
Objet : [R] Re :  float and double precision with C code

thank you for your quick answer,

I'm far of the digits capacity and my values are not the result of a computation. I'm developping a R package to acces a specific data source. And I need precision a few better. How can I do ? 

When I try this In R console, this is correct and  what I need :
[1] TRUE


But I need to do the first operation (my_value <- 29.958334) in C


Regards,

----- Message d'origine ----
De : jim holtman <jholtman at gmail.com>
? : JS Ubei <jsubei at yahoo.fr>
Cc : r-help at r-project.org
Envoy? le : Jeudi, 17 Juillet 2008, 14h56mn 01s
Objet : Re: [R] float and double precision with C code

FAQ 7.31

Also read

"What Every Computer Scientist Should Know About Floating-Point
Arithmetic", ACM Computing Surveys, 23/1, 5?48, also available via
http://docs.sun.com/source/806-3568/ncg_goldberg.html.
On Thu, Jul 17, 2008 at 8:47 AM, JS Ubei <jsubei at yahoo.fr> wrote: