Re: print integers on amulet?


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]

Posted by hussein on August 07, 2000 at 21:01:33:

In Reply to: print integers on amulet? posted by q on August 07, 2000 at 20:42:39:

: how to print integers onto the amulet screen? what technic to use to print zeros in front of numbers that's less than 10 onto the amulet screen?

use the sprintf command (as illustrated in sample program 1, and as discussed in class) with a template string of "%02d" for the integer

this will simultaneously solve your other problem of converting it to a string ...



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]