Skip to content

BDouble

bigearsenal edited this page May 17, 2022 · 1 revision

BDouble

public struct BDouble:
	ExpressibleByIntegerLiteral,
	ExpressibleByFloatLiteral,
	CustomStringConvertible,
	SignedNumeric,
	Comparable,
	Hashable

Inheritance

Comparable, CustomStringConvertible, ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral, Hashable, SignedNumeric

Nested Type Aliases

Magnitude

public typealias Magnitude = Double

Initializers

init?(exactly:)

public init?<T>(exactly source: T) where T : BinaryInteger 

init(_:)

public init(_ z: Int)

init(_:)

public init(_ d: Double)

init(integerLiteral:)

public init(integerLiteral value: Int)

init(floatLiteral:)

public init(floatLiteral value: Double)

Properties

magnitude

public var magnitude: Double = 0.0

description

public var description: String

Methods

decimalExpansion(precisionAfterComma:)

public func decimalExpansion(precisionAfterComma digits: Int) -> String

hash(into:)

public func hash(into hasher: inout Hasher) 

rawData()

public func rawData() -> (sign: Bool, numerator: [UInt64], denominator: [UInt64])

isPositive()

public func isPositive() -> Bool 

isNegative()

public func isNegative() -> Bool 

isZero()

public func isZero() -> Bool 

negate()

public mutating func negate()

minimize()

public mutating func minimize()

Operators

-=

public static func -=(lhs: inout BDouble, rhs: BDouble) 

+=

public static func +=(lhs: inout BDouble, rhs: BDouble) 

*=

public static func *=(lhs: inout BDouble, rhs: BDouble) 
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Operators
Extensions
Clone this wiki locally