Oh no no, you misunderstood me ;)
I took your suggestion from the eariler email, but thank you agian =)

I meant want, i thought it was odd there was no function in the standard libarys to do
what i consider a rather mundane and common function =)

-Thri

At 12:08 PM 1/20/2004, Joseph Dale wrote:
#define percent(number, pct)              (number * (pct / 100))

there you go.
NO = 100
PCT = 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


Reply via email to