• DocumentCode
    807021
  • Title

    Binary-to-decimal conversion based on the divisibility of 28-1 by 5

  • Author

    Arazi, B. ; Naccache, David

  • Author_Institution
    Ben Gurion Univ., Beer Sheva, Israel
  • Volume
    28
  • Issue
    23
  • fYear
    1992
  • Firstpage
    2151
  • Lastpage
    2152
  • Abstract
    The authors treat the case of converting a binary value, represented in the form of n bytes, into a decimal value, represented in the form of m BCD characters. The conversion, which is suitable for one-byte and two-byte processors, is based on the following observations: (a) 5 is a divisor of 28-1 and 216-1. (b) Modular binary arithmetic over 2r-1 is easily performed. (c) Binary division by 2r-1, in the case where the remainder is known to be zero, is easily performed. (d) All the prime factors of 28-1 and 216-1 are of the form 2r-+1.
  • Keywords
    data conversion; digital arithmetic; BCD characters; binary division; binary value; binary/decimal conversion; modular binary arithmetic; one-byte processor; two-byte processors;
  • fLanguage
    English
  • Journal_Title
    Electronics Letters
  • Publisher
    iet
  • ISSN
    0013-5194
  • Type

    jour

  • DOI
    10.1049/el:19921381
  • Filename
    173010