Print Using and Leading Zeros

Please use this Board for QBasic related requests ( file research, programming, etc.)

Moderators:Administrator, Global Moderator

Post Reply
Guest
Print Using and Leading Zeros

Post by Guest » Thu Oct 23, 2003 2:58 am

I am need a print using statement for $ values that would include leading zero... Any Help???

print using "####.##";45.45

need to print out 0045.45

Thanks,
Craig
craig@hydro-walk.com

Guest

Post by Guest » Sat Nov 06, 2004 3:29 am

How about:

PRINT USING "00##.##";45.45

That prints out as 0045.45

Ralph

Post Reply