View previous topic :: View next topic |
Author |
Message |
Ttelmah
Joined: 11 Mar 2010 Posts: 19540
|
|
Posted: Sat Aug 03, 2013 12:54 am |
|
|
I'd suspect the version might be quite early. PCD, had some printf problems in the past with 32bit integers, around the low 4.100's.
It gives the correct answer in 4.107, but is faulty in 4.099.
It will though work correctly, if you specify a field width. Just use:
printf("%1Ld,",temp);
Basically with a zero value, it displays nothing, rather than the zero. Specifying a single character minimum field width forces it to output one character in this situation, and the zero is then displayed.
Best Wishes |
|
|
CoverUp
Joined: 04 May 2010 Posts: 7
|
|
Posted: Wed Aug 07, 2013 9:15 am |
|
|
Our version is CCS 4.104
i tried with
Code: |
printf("%1Ld,",temp);
|
The output is
Code: |
100,50, ,10
100,50, ,10
100,50, ,10
100,50, ,10
...etc.
|
So "nothing" is replaced by "space". So you guys are right, it's a PCD bug and we need to update. |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|