From 1374f1523140a95920c0dbba48a769188f4fb04b Mon Sep 17 00:00:00 2001 From: slidedraw Date: Tue, 9 Apr 2002 22:37:10 +0000 Subject: [PATCH] Modified xlhtml.c to not lose digits on whole numbers. --- xlhtml/ChangeLog | 5 ++--- xlhtml/xlhtml.c | 7 ++++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xlhtml/ChangeLog b/xlhtml/ChangeLog index 7f4fb6b..6a3de52 100644 --- a/xlhtml/ChangeLog +++ b/xlhtml/ChangeLog @@ -1,7 +1,6 @@ - xlHtml ChangeLog + xlHtml ChangeLog - -0.4.9.4 +0.4.9.4 *Fixed some memory leaks *Increased file name limit to 256 characters diff --git a/xlhtml/xlhtml.c b/xlhtml/xlhtml.c index d9781fa..ef77e27 100644 --- a/xlhtml/xlhtml.c +++ b/xlhtml/xlhtml.c @@ -3460,12 +3460,13 @@ static void output_formatted_data(uni_string *u, U16 idx, int numeric, int formu } else { + num = atol((char *)u->str); if (Csv) - printf("\"%.0g\"", dnum ); + printf("%ld", num); else if (OutputXML) - printf("%.0g", dnum ); + printf("%ld", num ); else - printf("%.0g *", dnum ); + printf("%ld *", num ); } /* printf(" F:%02X", idx); */