Thank you for your input johnwm,
I asked for a formula that gives me an RGB from a decimal, you have given me a decimal from an RGB, furthermore this formula of yours makes no sense to me because if I have an RGB value of (255, 255, 255) then the decimal value should be 16 777 216, but according to your formula I get a decimal value of 16 776 705. I might be reading it wrong though could you please verify it for me.
Thank you.
Ochoruss