What do you like to use for adding commas to numerical output? - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/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 |