Video summary
Lec-2: Convert Decimal to Any Other Base(Binary, Octal, Hex etc) | Number System
Main summary
Key takeaways
Main ideas / lesson conveyed
- The video explains a method to convert a decimal (base-10) number into another base (binary, octal, hex, etc.).
- It emphasizes handling the number’s integer part and fractional part separately.
- It states a general rule:
- Integer part: repeatedly divide by the target base and collect remainders.
- Fractional part: repeatedly multiply by the target base and collect digits (the integer parts of each product).
- It gives a key conversion workflow:
- Start with the base you want to convert to.
- Build the result by reading:
- Integer remainders from bottom to top (reverse order of collection).
- Fractional digits in the order they appear (from top to bottom).
- This technique can be applied broadly, though commonly used bases (binary/octal/hex) are most frequently asked.
Method / step-by-step instructions (as presented)
1) Convert the integer part from decimal to base b
- Let the integer part be
N. - While
N > 0:- Compute
N ÷ b - Record the remainder
r(this remainder is the next digit in the target base) - Set
N = N ÷ b(using integer division)
- Compute
- After finishing:
- Read the collected remainders from the last (bottom) to the first (top) to form the integer portion of the target-base representation.
2) Convert the fractional part from decimal to base b
- Let the fractional part be
F(e.g.,0.35). - While desired precision is not reached:
- Compute
F × b - The integer part of the result becomes the next digit after the decimal point in the target base
- Update
Fto the fractional remainder (i.e., subtract the integer part)
- Compute
- The digits are collected in the order obtained to form the fractional portion.
3) Combine both parts
- Final representation =
(converted integer part).(converted fractional part)in the chosen base.
4) Example structure mentioned
- The subtitles reference converting a decimal number with a fractional part (e.g., 19.35) into binary by:
- Using base 2 for repeated division (integer part) and repeated multiplication (fractional part).
- The video also discusses applying the same repeated-process idea for other bases (the base is treated as the “divisor/multiplier” depending on whether you’re converting the integer vs fractional part).
Speakers / sources featured
- No clear named speaker is identified in the provided subtitles (no reliable “speaker” attribution beyond generic narration).