Conversion DECIMALE >> Hexadecimale urgent

Résolu
Bonjour,
je veux svp savoir comment convertir d un nombre decimale fractionaire vers l hexa sans passer par le binaire
c est urgent svp

merci d avance
Configuration: Windows XP
Internet Explorer 6.0

4 réponses

  1. merci mais sa ne marche pas je veu savoir savoir la maniere svp

    merci
    1. Salut
      Ça marche pas? Le convertisseur du lien de wodkassis marche très bien.

      Enfin bon... la manière la voici.
      Soit x un réel positif.
      Alors x = ∑ x_n*16^n où pour tout n x_n Є {0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F} et où sup {n / n≠0} < +∞
      Pour trouver les x_n:
      1) Soit N = sup {n / n≠0}
      Alors N = sup {n / 16^n ≤ x}
      2) x_N = sup {y / y*16^N ≤ x}
      3) x_(N-1) = sup {y / y*16^(N-1) ≤ x - x_N*16^N}
      4) x_(N-2) = sup {y / y*16^(N-2) ≤ x - x_N*16^N - x_(N-1)*16^(N-1)}
      5) x_(N-3) = sup {y / y*16^(N-2) ≤ x - x_N*16^N - x_(N-1)*16^(N-1) - x_(N-2)*16^(N-2)}
      6) etc...

      A plus
      1. Désolé il y a une coquille dans ce que j'ai écrit...
        Remplacer (les deux fois où ça apparait) sup {n / n≠0} par sup {n / x_n≠0}
        Sinon c'est tout pourri...