Conversion DECIMALE >> Hexadecimale urgent
Résolu
hosny
-
Sacabouffe Messages postés 9427 Date d'inscription Statut Membre Dernière intervention -
Sacabouffe Messages postés 9427 Date d'inscription Statut Membre Dernière intervention -
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
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
A voir également:
- Conversion DECIMALE >> Hexadecimale urgent
- Logiciel gratuit conversion calendrier républicain - Télécharger - Études & Formations
- Monnaie conversion - Télécharger - Banque & Budget
- Conversion bytes en mo ✓ - Forum Programmation
- 2k€ conversion ✓ - Forum Bureautique
- Conversion mb en mo ✓ - Forum Matériel & Système
4 réponses
Va voir la dessus sa devrais t'aidé !! http://sebastienguillon.com/test/javascript/convertisseur.html
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
Ç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