Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting number from 1 to 0001? 1

Status
Not open for further replies.

Bernini

Programmer
Joined
Oct 26, 2004
Messages
98
Location
MT
Hi

i need to format an integer number from say '1' to '0001'!

I know i should use the printf function bu i can't get the correct format!

Thanks
B
 
Try %04d
 
Great thanks Arkm!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top