Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Convertir le ‘BigInteger’ en un String

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));
    }
}

No comments yet.

Leave a Comment