Convertir le ‘BigInteger’ en un String

Author:

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

using System;
using System.Globalization;
using System.Numerics;

public class ExaBigInteger
{
    public static void Main()
    {
        BigInteger nombre = 999999999999999;
        nombre = BigInteger.Pow(nombre, 3) * BigInteger.MinusOne;

        NumberFormatInfo formatBig = new NumberFormatInfo();
        formatBig.NegativeSign = "~";

        Console.WriteLine(nombre.ToString(formatBig));
    }
}

Leave a Reply

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