What do you like to use for adding commas to numerical output? - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: Chatting and Socializing (https://staging.qb64phoenix.com/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://staging.qb64phoenix.com/forumdisplay.php?fid=2) +--- Thread: What do you like to use for adding commas to numerical output? (/showthread.php?tid=458) |
What do you like to use for adding commas to numerical output? - Pete - 05-21-2022 I've never used PRINT USING in my programs, so I usually code something like this demo... Code: (Select All) DIM a AS _INTEGER64 Pete RE: What do you like to use for adding commas to numerical output? - Pete - 05-22-2022 Something a bit more optimized. Code: (Select All) DO Of course for very large numbers this would have to be tweaked to exclude numeric input, and just use string math. Code: (Select All) DO Pete |