#define percent(number, pct) (number * (pct / 100))
there you go.
NO = 100PCT = 45 a = percent(NO, PCT); or a = 45
Cyhawk writes:
Yes i didnt realize how silly that question was untill i asked it, i just thought there was a standard API function like perl.. percent(number, precentage) but i suppose there isnt. -Thri-- ROM mailing list [email protected] http://www.rom.org/cgi-bin/mailman/listinfo/rom

