How to display 32-bit signed int num in PSoC 4?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
jamec_2673086
Level 3
Level 3
5 likes given First like received First like given

Hello,

In my project, i am reading data from RS4858 & displaying response to debug console.

In that, i need to print 32-bit signed data to debug console.

I am receiving data in correct variable but at displaying it prints its Unsigned int version.

Ex for -100 it display 65436.

Please help me solve to solve this issue.

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Use sprintf() with "%d" format.

Bob

View solution in original post

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Use sprintf() with "%d" format.

Bob

0 Likes