[R] Re : Re : float and double precision with C code

2008-07-17 Thread JS Ubei
ok, sorry, my mistake was the C printf. Thank you for your good answer Regards - Message d'origine De : JS Ubei <[EMAIL PROTECTED]> À : jim holtman <[EMAIL PROTECTED]> Cc : r-help@r-project.org Envoyé le : Jeudi, 17 Juillet 2008, 15h25mn 07s Objet : [R] Re :

[R] Re : float and double precision with C code

2008-07-17 Thread JS Ubei
hat I need : > my_value <- 29.958334 > my_value == 29.958334 [1] TRUE But I need to do the first operation (my_value <- 29.958334) in C Regards, - Message d'origine De : jim holtman <[EMAIL PROTECTED]> À : JS Ubei <[EMAIL PROTECTED]> Cc : r-help@r-project

[R] float and double precision with C code

2008-07-17 Thread JS Ubei
Hi all, There is a mistake for wich I need your ligths : /// I have a small C code : SEXP testData() { SEXP result; void * rans; float * my_data; int my_data_length; my_data_length = 2; my_data = new float[my_data_length]; m