Commit ccd87b37 authored by Chris Lahey's avatar Chris Lahey

Fixed the '.' bug.

parent 8df6dcc8
1998-08-18 Chris Lahey <clahey@jennifer.reshall.umich.edu>
* src/format.c (format_number): Fixed the small '.' error.
(decimal point shown even if not requested in numeric
conversions.)
1998-08-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/eval.c (cell_eval): Use the formating routine now.
......
1998-08-18 Chris Lahey <clahey@jennifer.reshall.umich.edu>
* src/format.c (format_number): Fixed the small '.' error.
(decimal point shown even if not requested in numeric
conversions.)
1998-08-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/eval.c (cell_eval): Use the formating routine now.
......
1998-08-18 Chris Lahey <clahey@jennifer.reshall.umich.edu>
* src/format.c (format_number): Fixed the small '.' error.
(decimal point shown even if not requested in numeric
conversions.)
1998-08-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/eval.c (cell_eval): Use the formating routine now.
......
1998-08-18 Chris Lahey <clahey@jennifer.reshall.umich.edu>
* src/format.c (format_number): Fixed the small '.' error.
(decimal point shown even if not requested in numeric
conversions.)
1998-08-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/eval.c (cell_eval): Use the formating routine now.
......
......@@ -314,7 +314,7 @@ format_number( gdouble number, gchar *format, char **color_name )
time_split = localtime( &timec );
info.decimal = length;
info.decimal = -1;
info.timeformat = 0;
info.hasnumbers = FALSE;
......@@ -465,7 +465,8 @@ format_number( gdouble number, gchar *format, char **color_name )
if( negative )
g_string_prepend_c( number_string, '-' );
g_string_append_c( number_string, '.' );
if( info.decimal >= 0 )
g_string_append_c( number_string, '.' );
temp = number - floor( number );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment