[gnome-db] Gda_Value_Stringify of a double



Hello list.
When i use this function with a gda value double, it generates a 2
decimal number, rounding it up. For example, 0.895 double becomes "0.90"
string.
I would like to have 4 decimas. Is this a parameter?

Meanwhile, i made a function wich does the same BUT it uses a static
buffer for the return and the format is parametrizable. No need to use
intermediate variables which needs to be freed. 
Is there any reason to not to do so with gda_value_stringify? (the
static char part) If the string is needed on a new var you just strdup
it.


Saludos, Juan Pablo.

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]