Création d’un ‘BigInteger’ à partir d’un tableau de ‘byte’

Author:

Calculer,la,puissance,d'un,nombre,de,type,'BigInteger'
{filelink=20033}

using System;
using System.Numerics;

public class ByteBigInteger
{
   public static void Main()
   {
        byte[] octets = { 20, 5, 4, 3, 2 };
        BigInteger nombre = new BigInteger(octets);
        Console.WriteLine("la valeur de nombre est: {0} (ou 0x{0:x}).", nombre); 

   }
}

Leave a Reply

Your email address will not be published. Required fields are marked *