Share via


Struttura Numerics.BigInteger (F#)

Tipo di Integer di dimensioni arbitrarie

Percorso spazio dei nomi/modulo: System.Numerics

Assembly: FSharp.Core (in FSharp.Core.dll)

[<CustomEquality>]
[<CustomComparison>]
type BigInteger =
 struct
  interface IComparable
  new BigInteger : int64 -> BigInteger
  new BigInteger : int -> BigInteger
  static member Abs : BigInteger -> BigInteger
  static member DivRem : BigInteger * BigInteger * byref<BigInteger> -> BigInteger
  static member GreatestCommonDivisor : BigInteger * BigInteger -> BigInteger
  static member Parse : string -> BigInteger
  static member Pow : BigInteger * int32 -> BigInteger
  member this.IsOne :  bool
  member this.IsZero :  bool
  static member One :  BigInteger
  member this.Sign :  int
  static member Zero :  BigInteger
  static member ( + ) : BigInteger * BigInteger -> BigInteger
  static member ( / ) : BigInteger * BigInteger -> BigInteger
  static member ( = ) : BigInteger * BigInteger -> bool
  static member op_Explicit : BigInteger -> int32
  static member op_Explicit : BigInteger -> int64
  static member op_Explicit : BigInteger -> float
  static member ( > ) : BigInteger * BigInteger -> bool
  static member ( >= ) : BigInteger * BigInteger -> bool
  static member ( <> ) : BigInteger * BigInteger -> bool
  static member ( < ) : BigInteger * BigInteger -> bool
  static member ( <= ) : BigInteger * BigInteger -> bool
  static member ( % ) : BigInteger * BigInteger -> BigInteger
  static member ( * ) : BigInteger * BigInteger -> BigInteger
  static member ( - ) : BigInteger * BigInteger -> BigInteger
  static member ( ~- ) : BigInteger -> BigInteger
  static member ( ~+ ) : BigInteger -> BigInteger
 end

Note

Questo tipo viene fornito per l'utilizzo esclusivo con F# Runtime destinato a .NET Framework 2.0. Se si utilizza .NET Framework 4, utilizzare il tipo .NET Framework 4 con lo stesso nome, BigInteger.

Costruttori

Membro

Oggetto di descrizione

new

Costruisce un valore BigInteger per il numero intero a 64 bit specificato

Membri di istanza

Membro

Descrizione

IsOne

Restituisce true se un valore Big Integer risulta 'uno'

IsZero

Restituisce true se un valore Big Integer risulta 'zero'

Sign

Restituisce il segno di un valore Big Integer: 0, +1 o -1

Membri statici

Membro

Descrizione

( % )

Restituisce il modulo di valori Big Integer

( * )

Restituisce il prodotto di numeri Big Integer

( + )

Restituisce la somma di due numeri Big Integer

( - )

Restituisce la differenza di due numeri Big Integer

( / )

Restituisce il rapporto di due numeri Big Integer

( < )

Questo operatore è presente per coerenza quando questo tipo viene utilizzato da altri linguaggi CLI

( <= )

Questo operatore è presente per coerenza quando questo tipo viene utilizzato da altri linguaggi CLI

( <> )

Questo operatore è presente per coerenza quando questo tipo viene utilizzato da altri linguaggi CLI

( = )

Questo operatore è presente per coerenza quando questo tipo viene utilizzato da altri linguaggi CLI

( > )

Questo operatore è presente per coerenza quando questo tipo viene utilizzato da altri linguaggi CLI

( >= )

Questo operatore è presente per coerenza quando questo tipo viene utilizzato da altri linguaggi CLI

( ~+ )

Restituisce il numero Big Integer specificato

( ~- )

Restituisce la negazione di un numero Big Integer

Abs

Calcola il valore assoluto di un numero Big Integer

DivRem

Calcola il rapporto e il resto di due numeri Big Integer

GreatestCommonDivisor

Restituisce il massimo comune divisore di due numeri Big Integer

One

Ottiene il valore Big Integer per uno

op_Explicit

Converte un numero Big Integer in un numero a virgola mobile

Parse

Analizza ed estrae un valore Big Integer da un formato stringa

Pow

Restituisce n^m per due numeri Big Integer

Zero

Ottiene il valore Big Integer per zero

Piattaforme

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Informazioni sulla versione

F# Runtime

Supportato in: 2.0

Silverlight

Supportato in: 3

Vedere anche

Altre risorse

Spazio dei nomi System.Numerics (F#)