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 »

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 »

How about:

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

That prints out as 0045.45

Ralph
Post Reply