From: SourceForge.net <no...@so...> - 2005-08-10 01:24:48
|
Bugs item #1255403, was opened at 2005-08-10 01:24 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1255403&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: S.J (shalomj) Assigned to: Nobody/Anonymous (nobody) Summary: printf_fast_f SIGN and leading spaces problem Initial Comment: Hello all! I'm using SDCC V2.5 MCS-51 on win98 platform. printf_fast_f with floating point functions with 2 exceptions: 1 - printf_fast_f SIGN is incorrect on values between 0 - ( -1) . 2 - format "%2.2f" not leads numbers less then 10 with space.. I tried Small and Large model and it was same problem. I solved this problem by applying float value to int and checking the sign. printf_fast_f ( "%2.2f" , (float) f_val ); batch file for build: redir -e proj.err SDCC --debug --code-loc 0x0000 --stack- loc 0xA0 --model-large -DUSE_FLOATS=1 --vc %1.c rem pause del %1.hex ren %1.ihx %1.hex ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1255403&group_id=599 |