Consts

Overview

Helper static class that provides access to a common constant values.

Location

  • Reference: Sugar
  • Namespace: Sugar

 

E

Represents the natural logarithmic base, specified by the constant e.

 

const E: Double;

 

const Double E

 

static let E: Double

 

static final Double E

FalseString

Gets the string representation of the false.

 

class property FalseString: not nullable String read;

 

class String! FalseString { get; }

 

static var FalseString: String { get{} }

 

class String! FalseString { __get; }

IsInfinity

Returns value that indicates whether specified parameter is infinity.

 

class method IsInfinity(Value: Double): Boolean

 

static Boolean IsInfinity(Double Value)

 

static func IsInfinity(_ Value: Double) -> Boolean

 

static Boolean IsInfinity(Double Value)

Parameters:

  • Value: The value to be checked.

IsNaN

Returns value that indicates whether specified parameter is not a number.

 

class method IsNaN(Value: Double): Boolean

 

static Boolean IsNaN(Double Value)

 

static func IsNaN(_ Value: Double) -> Boolean

 

static Boolean IsNaN(Double Value)

Parameters:

  • Value: The value to be checked.

IsNegativeInfinity

Returns value that indicates whether specified parameter is negative infinity.

 

class method IsNegativeInfinity(Value: Double): Boolean

 

static Boolean IsNegativeInfinity(Double Value)

 

static func IsNegativeInfinity(_ Value: Double) -> Boolean

 

static Boolean IsNegativeInfinity(Double Value)

Parameters:

  • Value: The value to be checked.

IsPositiveInfinity

Returns value that indicates whether specified parameter is positive infinity.

 

class method IsPositiveInfinity(Value: Double): Boolean

 

static Boolean IsPositiveInfinity(Double Value)

 

static func IsPositiveInfinity(_ Value: Double) -> Boolean

 

static Boolean IsPositiveInfinity(Double Value)

Parameters:

  • Value: The value to be checked.

MaxByte

Gets the largest possible value of a Byte.

 

class property MaxByte: Byte read;

 

class Byte MaxByte { get; }

 

static var MaxByte: Byte { get{} }

 

class Byte MaxByte { __get; }

MaxChar

Gets the largest possible value of a Char.

 

class property MaxChar: Int32 read;

 

class Int32 MaxChar { get; }

 

static var MaxChar: Int32 { get{} }

 

class Int32 MaxChar { __get; }

MaxDouble

Gets the largest possible value of a Double.

 

class property MaxDouble: Double read;

 

class Double MaxDouble { get; }

 

static var MaxDouble: Double { get{} }

 

class Double MaxDouble { __get; }

MaxInt64

Gets the largest possible value of a Int64.

 

class property MaxInt64: Int64 read;

 

class Int64 MaxInt64 { get; }

 

static var MaxInt64: Int64 { get{} }

 

class Int64 MaxInt64 { __get; }

MaxInteger

Gets the largest possible value of a Int32.

 

class property MaxInteger: Int32 read;

 

class Int32 MaxInteger { get; }

 

static var MaxInteger: Int32 { get{} }

 

class Int32 MaxInteger { __get; }

MinByte

Gets the smallest possible value of a Byte.

 

class property MinByte: Byte read;

 

class Byte MinByte { get; }

 

static var MinByte: Byte { get{} }

 

class Byte MinByte { __get; }

MinChar

Gets the smallest possible value of a Char.

 

class property MinChar: Int32 read;

 

class Int32 MinChar { get; }

 

static var MinChar: Int32 { get{} }

 

class Int32 MinChar { __get; }

MinDouble

Gets the smallest possible value of a Double.

 

class property MinDouble: Double read;

 

class Double MinDouble { get; }

 

static var MinDouble: Double { get{} }

 

class Double MinDouble { __get; }

MinInt64

Gets the smallest possible value of a Int64.

 

class property MinInt64: Int64 read;

 

class Int64 MinInt64 { get; }

 

static var MinInt64: Int64 { get{} }

 

class Int64 MinInt64 { __get; }

MinInteger

Gets the smallest possible value of a Int32.

 

class property MinInteger: Int32 read;

 

class Int32 MinInteger { get; }

 

static var MinInteger: Int32 { get{} }

 

class Int32 MinInteger { __get; }

NaN

Gets a value which represents not a number.

 

class property NaN: Double read;

 

class Double NaN { get; }

 

static var NaN: Double { get{} }

 

class Double NaN { __get; }

NegativeInfinity

Gets a value which represents negative infinity.

 

class property NegativeInfinity: Double read;

 

class Double NegativeInfinity { get; }

 

static var NegativeInfinity: Double { get{} }

 

class Double NegativeInfinity { __get; }

PI

Represents the ratio of the circumference of a circle to its diameter, specified by the constant π.

 

const PI: Double;

 

const Double PI

 

static let PI: Double

 

static final Double PI

PositiveInfinity

Gets a value which represents positive infinity.

 

class property PositiveInfinity: Double read;

 

class Double PositiveInfinity { get; }

 

static var PositiveInfinity: Double { get{} }

 

class Double PositiveInfinity { __get; }

TrueString

Gets the string representation of the true.

 

class property TrueString: not nullable String read;

 

class String! TrueString { get; }

 

static var TrueString: String { get{} }

 

class String! TrueString { __get; }

 

E

Represents the natural logarithmic base, specified by the constant e.

 

const E: Double;

 

const Double E

 

static let E: Double

 

static final Double E

PI

Represents the ratio of the circumference of a circle to its diameter, specified by the constant π.

 

const PI: Double;

 

const Double PI

 

static let PI: Double

 

static final Double PI

 

FalseString

Gets the string representation of the false.

 

class property FalseString: not nullable String read;

 

class String! FalseString { get; }

 

static var FalseString: String { get{} }

 

class String! FalseString { __get; }

MaxByte

Gets the largest possible value of a Byte.

 

class property MaxByte: Byte read;

 

class Byte MaxByte { get; }

 

static var MaxByte: Byte { get{} }

 

class Byte MaxByte { __get; }

MaxChar

Gets the largest possible value of a Char.

 

class property MaxChar: Int32 read;

 

class Int32 MaxChar { get; }

 

static var MaxChar: Int32 { get{} }

 

class Int32 MaxChar { __get; }

MaxDouble

Gets the largest possible value of a Double.

 

class property MaxDouble: Double read;

 

class Double MaxDouble { get; }

 

static var MaxDouble: Double { get{} }

 

class Double MaxDouble { __get; }

MaxInt64

Gets the largest possible value of a Int64.

 

class property MaxInt64: Int64 read;

 

class Int64 MaxInt64 { get; }

 

static var MaxInt64: Int64 { get{} }

 

class Int64 MaxInt64 { __get; }

MaxInteger

Gets the largest possible value of a Int32.

 

class property MaxInteger: Int32 read;

 

class Int32 MaxInteger { get; }

 

static var MaxInteger: Int32 { get{} }

 

class Int32 MaxInteger { __get; }

MinByte

Gets the smallest possible value of a Byte.

 

class property MinByte: Byte read;

 

class Byte MinByte { get; }

 

static var MinByte: Byte { get{} }

 

class Byte MinByte { __get; }

MinChar

Gets the smallest possible value of a Char.

 

class property MinChar: Int32 read;

 

class Int32 MinChar { get; }

 

static var MinChar: Int32 { get{} }

 

class Int32 MinChar { __get; }

MinDouble

Gets the smallest possible value of a Double.

 

class property MinDouble: Double read;

 

class Double MinDouble { get; }

 

static var MinDouble: Double { get{} }

 

class Double MinDouble { __get; }

MinInt64

Gets the smallest possible value of a Int64.

 

class property MinInt64: Int64 read;

 

class Int64 MinInt64 { get; }

 

static var MinInt64: Int64 { get{} }

 

class Int64 MinInt64 { __get; }

MinInteger

Gets the smallest possible value of a Int32.

 

class property MinInteger: Int32 read;

 

class Int32 MinInteger { get; }

 

static var MinInteger: Int32 { get{} }

 

class Int32 MinInteger { __get; }

NaN

Gets a value which represents not a number.

 

class property NaN: Double read;

 

class Double NaN { get; }

 

static var NaN: Double { get{} }

 

class Double NaN { __get; }

NegativeInfinity

Gets a value which represents negative infinity.

 

class property NegativeInfinity: Double read;

 

class Double NegativeInfinity { get; }

 

static var NegativeInfinity: Double { get{} }

 

class Double NegativeInfinity { __get; }

PositiveInfinity

Gets a value which represents positive infinity.

 

class property PositiveInfinity: Double read;

 

class Double PositiveInfinity { get; }

 

static var PositiveInfinity: Double { get{} }

 

class Double PositiveInfinity { __get; }

TrueString

Gets the string representation of the true.

 

class property TrueString: not nullable String read;

 

class String! TrueString { get; }

 

static var TrueString: String { get{} }

 

class String! TrueString { __get; }

 

IsInfinity

Returns value that indicates whether specified parameter is infinity.

 

class method IsInfinity(Value: Double): Boolean

 

static Boolean IsInfinity(Double Value)

 

static func IsInfinity(_ Value: Double) -> Boolean

 

static Boolean IsInfinity(Double Value)

Parameters:

  • Value: The value to be checked.

IsNaN

Returns value that indicates whether specified parameter is not a number.

 

class method IsNaN(Value: Double): Boolean

 

static Boolean IsNaN(Double Value)

 

static func IsNaN(_ Value: Double) -> Boolean

 

static Boolean IsNaN(Double Value)

Parameters:

  • Value: The value to be checked.

IsNegativeInfinity

Returns value that indicates whether specified parameter is negative infinity.

 

class method IsNegativeInfinity(Value: Double): Boolean

 

static Boolean IsNegativeInfinity(Double Value)

 

static func IsNegativeInfinity(_ Value: Double) -> Boolean

 

static Boolean IsNegativeInfinity(Double Value)

Parameters:

  • Value: The value to be checked.

IsPositiveInfinity

Returns value that indicates whether specified parameter is positive infinity.

 

class method IsPositiveInfinity(Value: Double): Boolean

 

static Boolean IsPositiveInfinity(Double Value)

 

static func IsPositiveInfinity(_ Value: Double) -> Boolean

 

static Boolean IsPositiveInfinity(Double Value)

Parameters:

  • Value: The value to be checked.