View Single Post
  #10 (permalink)  
Old 07-10-2007, 01:28 AM
siLenTz's Avatar
siLenTz siLenTz is offline
Jr. Programmer
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Posts: 87
iTrader: (0)
siLenTz will become famous soon enoughsiLenTz will become famous soon enough
Using binary also a great solution and I don't thing it require alot of
math at all: Here for field that allow more than one option selected:


This mean we selected Red and White. Using Binary is not consider
an advanced math right? If we selected Black, Red and Whitr color
then the binary should be 1 1 0 0 1 and we can generate it into\
interger by simply: (1)(2^0)+(0)(1^2)+(0)(2^2)+(1)(2^3)+(0)(2^4)

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by siLenTz : 07-10-2007 at 01:31 AM.
Reply With Quote