Interface
interface MathExtension
public interface MathExtension
Description: Specifies an auxiliary interface for exporting prop and the Max and Min attributes. For floating-point numbers, the NaN, Inf, PI, E, MinDenormal, and MinNormal attributes as well as isInf, isNaN, and isNormal interfaces are exported. This auxiliary interface is empty.
extend Float16 <: MathExtension
extend Float16 <: MathExtension
Description: Extends half-precision floating-point numbers to support some mathematical constants.
Parent Type:
static prop E
public static prop E: Float16
Description: Obtains the natural constant of a half-precision floating-point number.
Type: Float16
static prop Inf
public static prop Inf: Float16
Description: Obtains the infinite number of a half-precision floating-point number.
Type: Float16
static prop Max
public static prop Max: Float16
Description: Obtains the maximum value of a half-precision floating-point number.
Type: Float16
static prop Min
public static prop Min: Float16
Description: Obtains the minimum value of a half-precision floating-point number.
Type: Float16
static prop MinDenormal
public static prop MinDenormal: Float16
Description: Obtains the minimum subnormal number of a half-precision floating-point number. The minimum positive subnormal number is the minimum positive number expressed in the IEEE double-precision format.
Type: Float16
static prop MinNormal
public static prop MinNormal: Float16
Description: Obtains the minimum normal number of a half-precision floating-point number.
Type: Float16
static prop NaN
public static prop NaN: Float16
Description: Obtains the NaN of a half-precision floating-point number.
Type: Float16
static prop PI
public static prop PI: Float16
Description: Obtains the circumference constant of a half-precision floating-point number.
Type: Float16
func isInf()
public func isInf(): Bool
Description: Checks whether a floating-point number of the Float16 type is an infinite value.
Returns:
- Bool: If the value of Float16 is positive infinity or negative infinity,
true
is returned. Otherwise,false
is returned.
func isNaN()
public func isNaN(): Bool
Description: Checks whether a floating-point number of the Float16 type is a non-numeric value.
Returns:
- Bool: If the value of Float16 is a non-numeric value,
true
is returned. Otherwise,false
is returned.
func isNormal()
public func isNormal(): Bool
Description: Checks whether a floating-point number of the Float16 type is a normal value.
Returns:
- Bool: If the value of Float16 is a normal floating-point number,
true
is returned. Otherwise,false
is returned.
extend Float32 <: MathExtension
extend Float32 <: MathExtension
Description: Extends single-precision floating-point numbers to support some mathematical constants.
Parent Type:
static prop E
public static prop E: Float32
Description: Obtains the natural constant of a single-precision floating-point number.
Type: Float32
static prop Inf
public static prop Inf: Float32
Description: Obtains the infinite number of a single-precision floating-point number.
Type: Float32
static prop Max
public static prop Max: Float32
Description: Obtains the maximum value of a single-precision floating-point number.
Type: Float32
static prop Min
public static prop Min: Float32
Description: Obtains the minimum value of a single-precision floating-point number.
Type: Float32
static prop MinDenormal
public static prop MinDenormal: Float32
Description: Obtains the minimum subnormal number of a single-precision floating-point number.
Type: Float32
static prop MinNormal
public static prop MinNormal: Float32
Description: Obtains the minimum normal number of a single-precision floating-point number.
Type: Float32
static prop NaN
public static prop NaN: Float32
Description: Obtains the NaN of a single-precision floating-point number.
Type: Float32
static prop PI
public static prop PI: Float32
Description: Obtains the circumference constant of a single-precision floating-point number.
Type: Float32
func isInf()
public func isInf(): Bool
Description: Checks whether a floating-point number of the Float32 type is an infinite value.
Returns:
- Bool: If the value of Float32 is positive infinity or negative infinity,
true
is returned. Otherwise,false
is returned.
func isNaN()
public func isNaN(): Bool
Description: Checks whether a floating-point number of the Float32 type is a non-numeric value.
Returns:
- Bool: If the value of Float32 is a non-numeric value,
true
is returned. Otherwise,false
is returned.
func isNormal()
public func isNormal(): Bool
Description: Checks whether a floating-point number of the Float32 type is a normal value.
Returns:
- Bool: If the value of Float32 is a normal floating-point number,
true
is returned. Otherwise,false
is returned.
extend Float64 <: MathExtension
extend Float64 <: MathExtension
Description: Extends double-precision floating-point numbers to support some mathematical constants.
Parent Type:
static prop E
public static prop E: Float64
Description: Obtains the natural constant of a double-precision floating-point number.
Type: Float64
static prop Inf
public static prop Inf: Float64
Description: Obtains the infinite number of a double-precision floating-point number.
Type: Float64
static prop Max
public static prop Max: Float64
Description: Obtains the maximum value of a double-precision floating-point number.
Type: Float64
static prop Min
public static prop Min: Float64
Description: Obtains the minimum value of a double-precision floating-point number.
Type: Float64
static prop MinDenormal
public static prop MinDenormal: Float64
Description: Obtains the minimum subnormal number of a double-precision floating-point number.
Type: Float64
static prop MinNormal
public static prop MinNormal: Float64
Description: Obtains the minimum normal number of a double-precision floating-point number.
Type: Float64
static prop NaN
public static prop NaN: Float64
Description: Obtains the NaN of a double-precision floating-point number.
Type: Float64
static prop PI
public static prop PI: Float64
Description: Obtains the circumference constant of a double-precision floating-point number.
Type: Float64
func isInf()
public func isInf(): Bool
Description: Checks whether a floating-point number of the Float64 type is an infinite value.
Returns:
- Bool: If the value of Float64 is positive infinity or negative infinity,
true
is returned. Otherwise,false
is returned.
func isNaN()
public func isNaN(): Bool
Description: Checks whether a floating-point number of the Float64 type is a non-numeric value.
Returns:
- Bool: If the value of Float64 is a non-numeric value,
true
is returned. Otherwise,false
is returned.
func isNormal()
public func isNormal(): Bool
Description: Checks whether a floating-point number of the Float64 type is a normal value.
Returns:
- Bool: If the value of Float64 is a normal floating-point number,
true
is returned. Otherwise,false
is returned.
extend Int16 <: MathExtension
extend Int16 <: MathExtension
Description: Extends 16-bit signed integers to support some mathematical constants.
Parent Type:
static prop Max
public static prop Max: Int16
Description: Obtains the maximum value of a 16-bit signed integer.
Type: Int16
static prop Min
public static prop Min: Int16
Description: Obtains the minimum value of a 16-bit signed integer.
Type: Int16
extend Int32 <: MathExtension
extend Int32 <: MathExtension
Description: Extends 32-bit signed integers to support some mathematical constants.
Parent Type:
static prop Max
public static prop Max: Int32
Description: Obtains the maximum value of a 32-bit signed integer.
Type: Int32
static prop Min
public static prop Min: Int32
Description: Obtains the minimum value of a 32-bit signed integer.
Type: Int32
extend Int64 <: MathExtension
extend Int64 <: MathExtension
Description: Extends 64-bit signed integers to support some mathematical constants.
Parent Type:
static prop Max
public static prop Max: Int64
Description: Obtains the maximum value of a 64-bit signed integer.
Type: Int64
static prop Min
public static prop Min: Int64
Description: Obtains the minimum value of a 64-bit signed integer.
Type: Int64
extend Int8 <: MathExtension
extend Int8 <: MathExtension
Description: Extends 8-bit signed integers to support some mathematical constants.
Parent Type:
static prop Max
public static prop Max: Int8
Description: Obtains the maximum value of an 8-bit signed integer.
Type: Int8
static prop Min
public static prop Min: Int8
Description: Obtains the minimum value of an 8-bit signed integer.
Type: Int8
extend IntNative <: MathExtension
extend IntNative <: MathExtension
Description: Extends platform-dependent signed integers to support some mathematical constants.
Parent Type:
static prop Max
public static prop Max: IntNative
Description: Obtains the maximum value of a platform-dependent signed integer.
Type: IntNative
static prop Min
public static prop Min: IntNative
Description: Obtains the minimum value of a platform-dependent signed integer.
Type: IntNative
extend UInt16 <: MathExtension
extend UInt16 <: MathExtension
Description: Extends 16-bit unsigned integers to support some mathematical constants.
Parent Type:
static prop Max
public static prop Max: UInt16
Description: Obtains the maximum value of a 16-bit unsigned integer.
Type: UInt16
static prop Min
public static prop Min: UInt16
Description: Obtains the minimum value of a 16-bit unsigned integer.
Type: UInt16
extend UInt32 <: MathExtension
extend UInt32 <: MathExtension
Description: Extends 32-bit unsigned integers to support some mathematical constants.
Parent Type:
static prop Max
public static prop Max: UInt32
Description: Obtains the maximum value of a 32-bit unsigned integer.
Type: UInt32
static prop Min
public static prop Min: UInt32
Description: Obtains the minimum value of a 32-bit unsigned integer.
Type: UInt32
extend UInt64 <: MathExtension
extend UInt64 <: MathExtension
Description: Extends 64-bit unsigned integers to support some mathematical constants.
Parent Type:
static prop Max
public static prop Max: UInt64
Description: Obtains the maximum value of a 64-bit unsigned integer.
Type: UInt64
static prop Min
public static prop Min: UInt64
Description: Obtains the minimum value of a 64-bit unsigned integer.
Type: UInt64
extend UInt8 <: MathExtension
extend UInt8 <: MathExtension
Description: Extends 8-bit unsigned integers to support some mathematical constants.
Parent Type:
static prop Max
public static prop Max: UInt8
Description: Obtains the maximum value of an 8-bit unsigned integer.
Type: UInt8
static prop Min
public static prop Min: UInt8
Description: Obtains the minimum value of an 8-bit unsigned integer.
Type: UInt8
extend UIntNative <: MathExtension
extend UIntNative <: MathExtension
Description: Extends platform-dependent unsigned integers to support some mathematical constants.
Parent Type:
static prop Max
public static prop Max: UIntNative
Description: Obtains the maximum value of a platform-dependent unsigned integer.
Type: UIntNative
static prop Min
public static prop Min: UIntNative
Description: Obtains the minimum value of a platform-dependent unsigned integer.
Type: UIntNative