How to convert int32 to print it?
int32 number;
printf(lcd_putc,"Digit %??".number);
Ttelmah Guest
Re: how to printf int32?
Posted: Wed May 26, 2004 5:24 am
Bieli wrote:
How to convert int32 to print it?
int32 number;
printf(lcd_putc,"Digit %??".number);
It depends what you want.
If you want to print in decimal, then:
%Ld
To print it in hex:
%Lx
To print it as unsigned:
%Lu
etc.
The 'L', is used for any 'long', either int16, or int32.
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