diff --git a/Documentation/NXGraphicsSubsystem.html b/Documentation/NXGraphicsSubsystem.html index 4408de6cf2..6c72771bc5 100644 --- a/Documentation/NXGraphicsSubsystem.html +++ b/Documentation/NXGraphicsSubsystem.html @@ -255,7 +255,7 @@
This NuttX feature includes: diff --git a/TODO b/TODO index 087977aee0..2745452395 100644 --- a/TODO +++ b/TODO @@ -15,7 +15,7 @@ nuttx/ (5) Binary loaders (binfmt/) (17) Network (net/, drivers/net) (3) USB (drivers/usbdev, drivers/usbhost) - (10) Libraries (lib/) + (11) Libraries (lib/) (10) File system/Generic drivers (fs/, drivers/) (5) Graphics subystem (graphics/) (1) Pascal add-on (pcode/) @@ -689,7 +689,14 @@ o Libraries (lib/) Description: Only the %f floating point format is supported. Others are accepted but treated like %f. Status: Open - Priority: Medium (this might important to someone. + Priority: Medium (this might important to someone). + + Title: FLOATING POINT PRECISION + Description: A fieldwidth and precision is required with the %f format. If %f + is used with no format, than floating numbers will be printed with + a precision of 0 (effectively presented as integers). + Status: Open + Priority: Medium (this might important to someone). o File system / Generic drivers (fs/, drivers/) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/lib/stdio/lib_libdtoa.c b/lib/stdio/lib_libdtoa.c index 77045d9b0b..1e022a8ebe 100644 --- a/lib/stdio/lib_libdtoa.c +++ b/lib/stdio/lib_libdtoa.c @@ -132,7 +132,6 @@ static void lib_dtoa(FAR struct lib_outstream_s *obj, int fmt, int prec, FAR char *digits; /* String returned by __dtoa */ FAR char *digalloc; /* Copy of digits to be freed after usage */ FAR char *rve; /* Points to the end of the return value */ - char sign; /* Temporary negative sign for floats */ int expt; /* Integer value of exponent */ int numlen; /* Actual number of digits returned by cvt */ int nchars; /* Number of characters to print */ @@ -144,11 +143,7 @@ static void lib_dtoa(FAR struct lib_outstream_s *obj, int fmt, int prec, if (value < 0) { value = -value; - sign = '-'; - } - else - { - sign = '\0'; + SET_NEGATE(flags); } /* Perform the conversion */ @@ -157,7 +152,7 @@ static void lib_dtoa(FAR struct lib_outstream_s *obj, int fmt, int prec, digalloc = digits; numlen = rve - digits; - if (sign) + if (IS_NEGATE(flags)) { obj->put(obj, '-'); }