Extreme Optimization™: Complexity made simple.

Math and Statistics
Libraries for .NET

  • Home
  • Features
    • Math Library
    • Vector and Matrix Library
    • Statistics Library
    • Performance
    • Usability
  • Documentation
    • Introduction
    • Math Library User's Guide
    • Vector and Matrix Library User's Guide
    • Data Analysis Library User's Guide
    • Statistics Library User's Guide
    • Reference
  • Resources
    • Downloads
    • QuickStart Samples
    • Sample Applications
    • Frequently Asked Questions
    • Technical Support
  • Order
  • Company
    • About us
    • Testimonials
    • Customers
    • Press Releases
    • Careers
    • Partners
    • Contact us
Introduction
Deployment Guide
Nuget packages
Configuration
Using Parallelism
Expand Mathematics Library User's GuideMathematics Library User's Guide
Expand Vector and Matrix Library User's GuideVector and Matrix Library User's Guide
Expand Data Analysis Library User's GuideData Analysis Library User's Guide
Expand Statistics Library User's GuideStatistics Library User's Guide
Expand Data Access Library User's GuideData Access Library User's Guide
Expand ReferenceReference

Skip Navigation LinksHome»Documentation»Reference»Extreme.Mathematics»BigFloat Class

BigFloat Class

Extreme Optimization Numerical Libraries for .NET Professional
Represents a floating-point number with arbitrary precision.
Inheritance Hierarchy

SystemObject
  Extreme.MathematicsBigFloat

Namespace:  Extreme.Mathematics
Assembly:  Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
Syntax

C#
VB
C++
F#
Copy
[SerializableAttribute]
public class BigFloat : IComparable, IFormattable, 
	IEquatable<BigFloat>, IComparable<BigFloat>
<SerializableAttribute>
Public Class BigFloat
	Implements IComparable, IFormattable, IEquatable(Of BigFloat), 
	IComparable(Of BigFloat)
[SerializableAttribute]
public ref class BigFloat : IComparable, 
	IFormattable, IEquatable<BigFloat^>, IComparable<BigFloat^>
[<SerializableAttribute>]
type BigFloat =  
    class
        interface IComparable
        interface IFormattable
        interface IEquatable<BigFloat>
        interface IComparable<BigFloat>
    end

The BigFloat type exposes the following members.

Constructors

  NameDescription
Public methodBigFloat(BigInteger)
Constructs a new arbitrary precision floating-point number from a BigInteger.
Public methodBigFloat(BigRational)
Constructs a new arbitrary precision floating-point number from a rational number.
Public methodBigFloat(Double)
Constructs a new arbitrary precision floating-point number from a double-precision floating-point number.
Public methodBigFloat(Int32)
Constructs a new arbitrary precision floating-point number from an integer.
Public methodBigFloat(Int64)
Constructs a new arbitrary precision floating-point number from an integer.
Public methodBigFloat(Double, AccuracyGoal)
Constructs a new arbitrary precision floating-point number from a double-precision floating-point number.
Public methodBigFloat(Int32, AccuracyGoal)
Constructs a new arbitrary precision floating-point number from an integer.
Public methodBigFloat(Int64, AccuracyGoal)
Constructs a new arbitrary precision floating-point number from an integer.
Public methodBigFloat(BigInteger, AccuracyGoal, RoundingMode)
Constructs a new arbitrary precision floating-point number from a BigInteger.
Public methodBigFloat(BigRational, AccuracyGoal, RoundingMode)
Constructs a new arbitrary precision floating-point number from a rational number.
Public methodBigFloat(Int32, BigInteger, Int32)
Constructs a new arbitrary precision floating-point number from the specified sign, mantissa, and exponent.
Top
Properties

  NameDescription
Public propertyAbsoluteBinaryPrecision
Gets the number of stored bits in the fractional part of the number.
Public propertyBinaryPrecision
Gets the number of bits of precision used to store the number.
Public propertyStatic memberDefaultAccuracyGoal
Gets or sets the default accuracy goal when performing operations on existing BigFloat numbers.
Public propertyStatic memberDefaultRoundingMode
Gets or sets the default rounding mode.
Public propertyExponent
Gets the exponent part of the BigFloat value.
Public propertyStatic memberInitialAccuracyGoal
Gets or sets the default accuracy goal when constructing new BigFloat numbers.
Public propertyIsInteger
Checks if the value of a BigFloat value is an integer.
Public propertyIsNegativeZero
Checks if the value of a BigFloat value is negative zero.
Public propertyIsOne
Checks if the value of a BigFloat value is equal to one.
Public propertyIsZero
Checks if the value of a BigFloat value is zero.
Public propertyMantissa
Gets the mantissa part of the BigFloat value.
Public propertySign
Gets the sign of the BigFloat value.
Top
Methods

  NameDescription
Public methodStatic memberAbs
Returns the absolute value of a number.
Public methodStatic memberAcos(BigFloat)
Returns the inverse cosine of a number.
Public methodStatic memberAcos(BigFloat, AccuracyGoal)
Returns the inverse cosine of a number with the specified accuracy.
Public methodStatic memberAcos(BigFloat, AccuracyGoal, RoundingMode)
Returns the inverse cosine of a number with the specified accuracy.
Public methodStatic memberAcosh(BigFloat)
Returns the inverse hyperbolic cosine of a number.
Public methodStatic memberAcosh(BigFloat, AccuracyGoal)
Returns the inverse hyperbolic cosine of a number with the specified accuracy.
Public methodStatic memberAcosh(BigFloat, AccuracyGoal, RoundingMode)
Returns the inverse hyperbolic cosine of a number with the specified accuracy.
Public methodStatic memberAdd(BigFloat, BigFloat)
Adds two BigFloat numbers.
Public methodStatic memberAdd(BigFloat, BigFloat, AccuracyGoal)
Adds two numbers and returns the result with the specified accuracy.
Public methodStatic memberAdd(BigFloat, BigFloat, AccuracyGoal, RoundingMode)
Adds two numbers and returns the result with the specified accuracy.
Public methodStatic memberAsin(BigFloat)
Returns the inverse sine of a number.
Public methodStatic memberAsin(BigFloat, AccuracyGoal)
Returns the inverse sine of a number with the specified accuracy.
Public methodStatic memberAsin(BigFloat, AccuracyGoal, RoundingMode)
Returns the inverse sine of a number with the specified accuracy.
Public methodStatic memberAsinh(BigFloat)
Returns the inverse hyperbolic sine of a number.
Public methodStatic memberAsinh(BigFloat, AccuracyGoal)
Returns the inverse hyperbolic sine of a number with the specified accuracy.
Public methodStatic memberAsinh(BigFloat, AccuracyGoal, RoundingMode)
Returns the inverse hyperbolic sine of a number with the specified accuracy.
Public methodStatic memberAtan(BigFloat)
Returns the inverse tangent of a number.
Public methodStatic memberAtan(BigFloat, AccuracyGoal)
Returns the inverse tangent of a number with the specified accuracy.
Public methodStatic memberAtan(BigFloat, AccuracyGoal, RoundingMode)
Returns the inverse tangent of a number with the specified accuracy.
Public methodStatic memberAtan2(BigFloat, BigFloat)
Returns the inverse tangent of a number.
Public methodStatic memberAtan2(BigFloat, BigFloat, AccuracyGoal)
Returns the inverse tangent of a number with the specified accuracy.
Public methodStatic memberAtan2(BigFloat, BigFloat, AccuracyGoal, RoundingMode)
Returns the inverse tangent of a number with the specified accuracy.
Public methodStatic memberAtanh(BigFloat)
Returns the inverse hyperbolic tangent of a number.
Public methodStatic memberAtanh(BigFloat, AccuracyGoal)
Returns the inverse hyperbolic tangent of a number with the specified accuracy.
Public methodStatic memberAtanh(BigFloat, AccuracyGoal, RoundingMode)
Returns the inverse hyperbolic tangent of a number with the specified accuracy.
Public methodStatic memberCeiling
Rounds a number up to the nearest integer.
Public methodStatic memberCompare
Compares two BigFloat numbers up to the specified AccuracyGoal.
Public methodCompareTo(BigFloat)
Compares a number to another number.
Public methodCompareTo(BigFloat, AccuracyGoal)
Compares a number to another number up to the specified AccuracyGoal.
Public methodStatic memberCopySign
Copies the sign of a number to another number.
Public methodStatic memberCos(BigFloat)
Returns the cosine of an angle.
Public methodStatic memberCos(BigFloat, AccuracyGoal)
Returns the cosine of an angle with the specified accuracy.
Public methodStatic memberCos(BigFloat, AccuracyGoal, RoundingMode)
Returns the cosine of an angle with the specified accuracy.
Public methodStatic memberCosh(BigFloat)
Returns the hyperbolic cosine of a number.
Public methodStatic memberCosh(BigFloat, AccuracyGoal)
Returns the hyperbolic cosine of a number with the specified accuracy.
Public methodStatic memberCosh(BigFloat, AccuracyGoal, RoundingMode)
Returns the hyperbolic cosine of a number with the specified accuracy.
Public methodStatic memberDivide(BigFloat, BigFloat)
Divides one BigFloat by another.
Public methodStatic memberDivide(BigFloat, BigFloat, AccuracyGoal, RoundingMode)
Divides one BigFloat by another to the specified accuracy.
Public methodEquals(BigFloat)
Tests whether a number equals another number.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ObjectEquals(Object).)
Public methodEquals(BigFloat, AccuracyGoal)
Tests whether a number equals another number up to the specified AccuracyGoal.
Public methodStatic memberEquals(BigFloat, BigFloat, AccuracyGoal)
Tests whether a number equals another number up to the specified AccuracyGoal.
Public methodStatic memberExp(BigFloat)
Returns e raised to the specified power.
Public methodStatic memberExp(BigFloat, AccuracyGoal)
Returns e raised to the specified power to the specified accuracy.
Public methodStatic memberExp(BigFloat, AccuracyGoal, RoundingMode)
Returns e raised to the specified power to the specified accuracy.
Public methodStatic memberExpm1
Returns e raised to the specified power to the specified accuracy.
Public methodExtendPrecision
Returns a BigFloat value with at least the specified precision and the same value as this instance.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFloor
Rounds a number down to the nearest integer.
Public methodStatic memberFractionalPart
Returns the fractional part of the BigFloat number.
Public methodStatic memberFromRational
Constructs a new arbitrary precision floating-point number from a rational number.
Public methodStatic memberGamma(BigFloat)
Returns the gamma function of a number.
Public methodStatic memberGamma(BigFloat, AccuracyGoal)
Returns the gamma function of a number to the specified accuracy.
Public methodStatic memberGamma(BigFloat, AccuracyGoal, RoundingMode)
Returns the gamma function of a number to the specified accuracy.
Public methodGetDecimalDigits
Gets the approximate number of decimal digits in the BigFloat value.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodStatic memberGetPi(AccuracyGoal)
Returns the value of pi to the specified number of digits.
Public methodStatic memberGetPi(AccuracyGoal, RoundingMode)
Returns the value of pi to the specified number of digits.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInverse(BigFloat)
Returns the reciprocal of a number.
Public methodStatic memberInverse(BigFloat, AccuracyGoal)
Returns the reciprocal of a number with the specified accuracy.
Public methodStatic memberInverse(BigFloat, AccuracyGoal, RoundingMode)
Returns the reciprocal of a number with the specified accuracy.
Public methodStatic memberIsInfinity
Checks if the value of a BigFloat value is infinite.
Public methodStatic memberIsNaN
Checks if the value of a BigFloat value is "Not a Number."
Public methodStatic memberIsNegativeInfinity
Checks if the value of a BigFloat value is negative infinity.
Public methodStatic memberIsPositiveInfinity
Checks if the value of a BigFloat value is positive infinity.
Public methodStatic memberLog(BigFloat)
Returns the natural logarithm of a number with the specified accuracy.
Public methodStatic memberLog(BigFloat, AccuracyGoal)
Returns the natural logarithm of a number with the specified accuracy.
Public methodStatic memberLog(BigFloat, BigFloat)
Returns the logarithm of a number relative to the specified base with the specified accuracy.
Public methodStatic memberLog(BigFloat, AccuracyGoal, RoundingMode)
Returns the natural logarithm of a number with the specified accuracy.
Public methodStatic memberLog(BigFloat, BigFloat, AccuracyGoal)
Returns the logarithm of a number relative to the specified base with the specified accuracy.
Public methodStatic memberLog(BigFloat, BigFloat, AccuracyGoal, RoundingMode)
Returns the logarithm of a number relative to the specified base with the specified accuracy.
Public methodStatic memberLog1PlusX(BigFloat)
Returns the natural logarithm of 1 plus a number with the default accuracy.
Public methodStatic memberLog1PlusX(BigFloat, AccuracyGoal)
Returns the natural logarithm of 1 plus a number with the specified accuracy.
Public methodStatic memberLog1PlusX(BigFloat, AccuracyGoal, RoundingMode)
Returns the natural logarithm of 1 plus a number with the specified accuracy.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberModulus
Returns the remainder after dividing one BigFloat number by another.
Public methodStatic memberMultiply(BigFloat, BigFloat)
Multiplies two numbers.
Public methodStatic memberMultiply(BigFloat, BigFloat, AccuracyGoal, RoundingMode)
Multiplies two numbers and returns the result to the specified accuracy.
Public methodStatic memberNegate
Returns a BigFloat value with the opposite sign.
Public methodStatic memberParse(String)
Converts a string value to a BigFloat.
Public methodStatic memberParse(String, AccuracyGoal)
Converts a string value to a BigFloat.
Public methodStatic memberParse(String, NumberStyles)
Converts a string value to a BigFloat.
Public methodStatic memberParse(String, IFormatProvider)
Converts a string value to a BigFloat.
Public methodStatic memberParse(String, AccuracyGoal, NumberStyles)
Converts a string value to a BigFloat.
Public methodStatic memberParse(String, AccuracyGoal, IFormatProvider)
Converts a string value to a BigFloat.
Public methodStatic memberParse(String, NumberStyles, IFormatProvider)
Converts a string value to a BigFloat.
Public methodStatic memberParse(String, AccuracyGoal, NumberStyles, IFormatProvider)
Converts a string value to a BigFloat.
Public methodStatic memberPow(BigFloat, BigFloat)
Raises a number to the specified power.
Public methodStatic memberPow(BigFloat, Int32)
Raises a number to the specified power.
Public methodStatic memberPow(BigFloat, BigFloat, AccuracyGoal)
Raises a number to the specified power with the specified accuracy.
Public methodStatic memberPow(BigFloat, Int32, AccuracyGoal)
Raises a number to the specified power with the specified accuracy.
Public methodStatic memberPow(BigFloat, BigFloat, AccuracyGoal, RoundingMode)
Raises a number to the specified power with the specified accuracy.
Public methodStatic memberPow(BigFloat, Int32, AccuracyGoal, RoundingMode)
Raises a number to the specified power with the specified accuracy.
Public methodRestrictPrecision
Returns a BigFloat value with at most the specified precision and the same value as this instance.
Public methodStatic memberRoot(BigFloat, Int32)
Returns the square root of a number.
Public methodStatic memberRoot(BigFloat, Int32, AccuracyGoal)
Returns the specified root of a number with the specified accuracy.
Public methodStatic memberRoot(BigFloat, Int32, AccuracyGoal, RoundingMode)
Returns the specified root of a number with the specified accuracy.
Public methodStatic memberRound(BigFloat)
Rounds a BigFloat value to the nearest integer.
Public methodStatic memberRound(BigFloat, Int32)
Rounds a BigFloat value to the specified number of decimal digits.
Public methodStatic memberRound(BigFloat, Int32, RoundingMode)
Rounds a BigFloat value to the specified number of decimal digits.
Public methodStatic memberScaleByPowerOfTwo
Multiplies a BigFloat value by a power of two.
Public methodStatic memberSin(BigFloat)
Returns the sine of an angle.
Public methodStatic memberSin(BigFloat, AccuracyGoal)
Returns the sine of an angle with the specified accuracy.
Public methodStatic memberSin(BigFloat, AccuracyGoal, RoundingMode)
Returns the sine of an angle with the specified accuracy.
Public methodStatic memberSinCos(BigFloat)
Calculates the sine and the cosine of an angle.
Public methodStatic memberSinCos(BigFloat, AccuracyGoal)
Calculates the sine and the cosine of an angle with the specified accuracy.
Public methodStatic memberSinCos(BigFloat, AccuracyGoal, RoundingMode)
Calculates the sine and the cosine of an angle with the specified accuracy.
Public methodStatic memberSinCos(BigFloat, BigFloat, BigFloat)
Calculates the sine and the cosine of an angle.
Public methodStatic memberSinCos(BigFloat, AccuracyGoal, BigFloat, BigFloat)
Calculates the sine and the cosine of an angle with the specified accuracy.
Public methodStatic memberSinCos(BigFloat, AccuracyGoal, RoundingMode, BigFloat, BigFloat)
Calculates the sine and the cosine of an angle with the specified accuracy.
Public methodStatic memberSinh(BigFloat)
Returns the hyperbolic sine of a number.
Public methodStatic memberSinh(BigFloat, AccuracyGoal)
Returns the hyperbolic sine of a number with the specified accuracy.
Public methodStatic memberSinh(BigFloat, AccuracyGoal, RoundingMode)
Returns the hyperbolic sine of a number with the specified accuracy.
Public methodStatic memberSqrt(BigFloat)
Returns the square root of a number.
Public methodStatic memberSqrt(BigFloat, AccuracyGoal)
Returns the square root of a number with the specified accuracy.
Public methodStatic memberSqrt(BigFloat, AccuracyGoal, RoundingMode)
Returns the square root of a number with the specified accuracy.
Public methodStatic memberSubtract(BigFloat, BigFloat)
Subtracts one number from another.
Public methodStatic memberSubtract(BigFloat, BigFloat, AccuracyGoal, RoundingMode)
Subtracts one number from another and returns the result to the specified accuracy.
Public methodStatic memberTan(BigFloat)
Returns the tangent of an angle.
Public methodStatic memberTan(BigFloat, AccuracyGoal)
Returns the tangent of an angle with the specified accuracy.
Public methodStatic memberTan(BigFloat, AccuracyGoal, RoundingMode)
Returns the tangent of an angle with the specified accuracy.
Public methodStatic memberTanh(BigFloat)
Returns the hyperbolic tangent of a number.
Public methodStatic memberTanh(BigFloat, AccuracyGoal)
Returns the hyperbolic tangent of a number with the specified accuracy.
Public methodStatic memberTanh(BigFloat, AccuracyGoal, RoundingMode)
Returns the hyperbolic tangent of a number with the specified accuracy.
Public methodToString
Returns a String representation of the number.
(Overrides ObjectToString.)
Public methodToString(IFormatProvider)
Formats the value of the current instance using the specified format.
Public methodToString(String)
Formats the value of the current instance using the specified format.
Public methodToString(String, IFormatProvider)
Formats the value of the current instance using the specified format.
Public methodStatic memberTryParse(String, BigFloat)
Attempts to convert a string value to a BigFloat.
Public methodStatic memberTryParse(String, AccuracyGoal, BigFloat)
Attempts to convert a string value to a BigFloat.
Public methodStatic memberTryParse(String, AccuracyGoal, NumberStyles, IFormatProvider, BigFloat)
Attempts to convert a string value to a BigFloat.
Top
Operators

  NameDescription
Public operatorStatic memberAddition(BigFloat, BigFloat)
Adds two BigFloat numbers.
Public operatorStatic memberAddition(BigFloat, BigInteger)
Adds a BigFloat number and a BigInteger.
Public operatorStatic memberAddition(BigFloat, BigRational)
Adds a BigFloat and a BigRational number.
Public operatorStatic memberAddition(BigFloat, Int32)
Adds two BigFloat numbers.
Public operatorStatic memberAddition(BigInteger, BigFloat)
Adds a BigFloat number and a BigInteger.
Public operatorStatic memberAddition(BigRational, BigFloat)
Adds a BigFloat and a BigRational number.
Public operatorStatic memberAddition(Int32, BigFloat)
Adds two BigFloat numbers.
Public operatorStatic memberDivision(BigFloat, BigFloat)
Divides one BigFloat by another.
Public operatorStatic memberDivision(BigFloat, BigInteger)
Divides two numbers.
Public operatorStatic memberEquality
Returns whether a BigFloat is equal to another.
Public operatorStatic member(BigFloat to BigInteger)
Converts a BigFloat to a BigInteger.
Public operatorStatic member(BigFloat to Quad)
Converts a BigFloat value to a Double.
Public operatorStatic member(BigFloat to Byte)
Converts a BigFloat to a Byte value.
Public operatorStatic member(BigFloat to Decimal)
Converts a BigFloat to a Decimal number.
Public operatorStatic member(BigFloat to Double)
Converts a BigFloat value to a Double.
Public operatorStatic member(BigFloat to Int16)
Converts a BigFloat to a Int16 value.
Public operatorStatic member(BigFloat to Int32)
Converts a BigFloat to a Int32 value.
Public operatorStatic member(BigFloat to Int64)
Converts a BigFloat to a long integer.
Public operatorStatic member(BigFloat to SByte)
Converts a BigFloat to a SByte value.
Public operatorStatic member(BigFloat to Single)
Converts a BigFloat to a single-precision floating-point number.
Public operatorStatic member(BigFloat to UInt16)
Converts a BigFloat to a UInt16 value.
Public operatorStatic member(BigFloat to UInt32)
Converts a BigFloat to an unsigned integer.
Public operatorStatic member(BigFloat to UInt64)
Converts a BigFloat to a long unsigned integer.
Public operatorStatic memberExponent(BigFloat, BigFloat)
Represents the exponentiation operator.
Public operatorStatic memberExponent(BigFloat, Int32)
Represents the exponentiation operator.
Public operatorStatic memberExponentiation(BigFloat, BigFloat)
Represents the exponentiation operator.
Public operatorStatic memberExponentiation(BigFloat, Int32)
Represents the exponentiation operator.
Public operatorStatic memberGreaterThan
Returns whether a BigFloat is greater than another.
Public operatorStatic memberGreaterThanOrEqual
Returns whether a BigFloat is greater than or equal to another.
Public operatorStatic member(BigInteger to BigFloat)
Converts a BigInteger to a BigFloat value.
Public operatorStatic member(Byte to BigFloat)
Converts a BigInteger value to a Byte value.
Public operatorStatic member(Decimal to BigFloat)
Converts a Decimal number to a BigFloat value.
Public operatorStatic member(Double to BigFloat)
Converts a double-precision floating-point number to a BigInteger value.
Public operatorStatic member(Int16 to BigFloat)
Converts a 16 bit signed integer to a BigFloat value.
Public operatorStatic member(Int32 to BigFloat)
Converts a 32 bit signed integer to a BigFloat value.
Public operatorStatic member(Int64 to BigFloat)
Converts a 64 bit signed integer to a BigFloat value.
Public operatorStatic member(SByte to BigFloat)
Converts a signed byte to a BigFloat value.
Public operatorStatic member(Single to BigFloat)
Converts a single-precision floating-point number to a BigInteger value.
Public operatorStatic member(UInt16 to BigFloat)
Converts a 16 bit unsigned integer to a BigFloat value.
Public operatorStatic member(UInt32 to BigFloat)
Converts a 32 bit unsigned integer to a BigFloat value.
Public operatorStatic member(UInt64 to BigFloat)
Converts a 64 bit unsigned integer to a BigFloat value.
Public operatorStatic memberInequality
Returns whether a BigFloat is not equal to another.
Public operatorStatic memberLessThan
Returns whether a BigFloat is less than another.
Public operatorStatic memberLessThanOrEqual
Returns whether a BigFloat is less than or equal to another.
Public operatorStatic memberModulus
Returns the remainder after dividing one BigFloat number by another.
Public operatorStatic memberMultiply(BigFloat, BigFloat)
Multiplies two numbers.
Public operatorStatic memberMultiply(BigFloat, BigInteger)
Multiplies two numbers.
Public operatorStatic memberMultiply(BigInteger, BigFloat)
Multiplies two numbers.
Public operatorStatic memberMultiply(Int32, BigFloat)
Multiplies a BigFloat value by an integer.
Public operatorStatic memberSubtraction(BigFloat, BigFloat)
Subtracts one number from another.
Public operatorStatic memberSubtraction(BigFloat, Int32)
Adds two BigFloat numbers.
Public operatorStatic memberSubtraction(Int32, BigFloat)
Adds two BigFloat numbers.
Public operatorStatic memberUnaryNegation
Returns a BigInteger value with the opposite sign.
Top
Fields

  NameDescription
Public fieldStatic memberMaxValue
The largest possible BigFloat,
Public fieldStatic memberMinPositiveValue
The smallest BigFloat greater than zero,
Public fieldStatic memberMinusOne
The number -1 as a BigFloat,
Public fieldStatic memberMinValue
The smallest possible BigFloat,
Public fieldStatic memberNaN
Not-a-Number, the value returned when the result is undefined.
Public fieldStatic memberNegativeInfinity
Negative infinity as a BigFloat,
Public fieldStatic memberNegativeZero
Negative 0 as a BigFloat,
Public fieldStatic memberOne
The number 1 as a BigFloat,
Public fieldStatic memberPositiveInfinity
Positive infinity as a BigFloat,
Public fieldStatic memberZero
The number 0 as a BigFloat,
Top
Remarks

Use the BigFloat class to represent numbers that may not fit into the standard single or double precision floating point types, or the decimal type.

A BigFloat can have a precision of up to 236 bits. The binary exponent is an integer, which allows a decimal exponent up to roughly 646 million. This gives the BigFloat type a total range of roughly

BigFloat numbers can be constructed in a variety of ways, including from other numerical types and from strings. Implicit (widening) conversions are available for all built-in integer types and floating-point types. Explicit conversions are also available for Decimal and BigRational.

The BigFloat class provides methods for all the common operations on real numbers. Overloaded versions of the major arithmetic operators are provided for languages that support them. For languages that don't support operator overloading, equivalent methods are supplied.

The precision of the result of an operation depends on the operation itself. Addition and subtraction by default use the smallest absolute precision of their operands. Multiplication and division use the smallest relative precision of their operands. Details on the precision of specific operations can be found in the documentation.

Results are rounded to the nearest number. There is a high probability but no guarantee that the result is correctly rounded.

The desired precision and rounding mode can be overridden by passing additional arguments to the method that performs the operation. An AccuracyGoal value specifies the precision. The precision can be absolute or relative. By default, the precision is inherited from the operands. The RoundingMode determines how the result is rounded.

The BigFloat type supports generic arithmetic. The associated arithmetic type implements IIeeeOperationsT, which means it supports all methods available for Double in the Math class, as well as special values such as PositiveInfinity, NegativeInfinity and NaN.

See Also

Reference

Extreme.Mathematics Namespace

Copyright (c) 2004-2023 ExoAnalytics Inc.

Send comments on this topic to support@extremeoptimization.com

Copyright © 2004-2023, Extreme Optimization. All rights reserved.
Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc.
Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo
are registered trademarks of Microsoft Corporation.