Date: Tue, 23 Oct 2001 10:58:19 -0500 (CDT) From: Mark Jacobson To: 810-030-01@uni.edu Subject: \ is Integer division, / is Real division, mod is remainder ... - - --- ?100\30 Integer division \ 3 ?100/30 Real or floating point number division / 3.33333333333333 ?30\7 7 goes into 30 4 times using \ 4 ?30/7 4.28571428571429 ?100 mod 30 MOD operator gives you the remainder 10 <----- 30 goes into 100 3 times, with remainder of 10 ?30 mod 7 ___4___ <---- Quotient of 4 30 \ 7 2 7 | 30 28 -- 2 <---- Remainder of 2 30 mod 7 If you have a base 10 value in some textbox, you need to convert it from the string "123" to the value 123, for example. b10 = Val(Text1.Text) b2 = "" <--- Your base 2 binary result will be a string, made up of 0's and 1's when you get done doing the Do While b10 > 0 .... Loop Enough on how to convert from base 10 to binary. Starting with decimal number 67, for example. b10 \ 2 b10 mod 2 ------- --------- 2 67 1 1000011 is the answer 33 1 64 + 2 + 1 = 67 16 0 8 0 4 0 2 0 6 1 1 <---- 2 = 64's digit... 0 <--- Done! Be sure to look at and study http://www.cns.uni.edu/~jacobson/binaryConvert080.txt and http://www.cns.uni.edu/~jacobson/quizOct2001.html and http://www.cns.uni.edu/~jacobson/c030.html Mark