Code:
MACRO has_decimals (num) = FIX(num) <> num MACRO Fmt_num (num) = FORMAT$ (num, IIF$(has_decimals(num), "##.##", "#")) ... PRINT fmt_num(num) ' prints with decimals if it has any else without.
Apparently not as desireable a goal as I had thought; "The long, hard way" remains immensely popular. (see also: http://www.powerbasic.com/support/pb...ad.php?t=39710)
MCM
Leave a comment: