new Double()
- Description:
Represents a
baja:Doublein BajaScript.Augments
Numberto be a BajaDouble. ECMAScript only has one numeric
type for Doubles, Floats, Longs and Integers. Therefore, this type
naturally maps tobaja:Double.
- Source:
Extends
Members
(static) DEFAULT :Number
- Description:
Default
Numberinstance.
- Source:
Default Number instance.
Type:
- Number
Methods
decodeFromString(str) → {Number}
- Description:
Decode a
Numberfrom aString.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
str |
String | an encoded |
Returns:
- Type
- Number
encodeToString() → {String}
- Description:
Encode the
Number(itself) to aString.
- Source:
Returns:
- Type
- String
equals(obj) → {Boolean}
- Description:
Equality test.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
Returns:
- Type
- Boolean
equivalent(obj) → {Boolean}
- Description:
Equivalence test.
Used to compare if two objects have equivalent state, but might not want to
return true for equals since it it has implied semantics for many
operations. The default implementation returns the result of
equals().
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
Returns:
- Type
- Boolean
getDataTypeSymbol() → {String}
- Description:
Return the data type symbol.
Used for encoding this data type (primarily for facets).
- Source:
Returns:
- Type
- String
getIcon() → {baja.Icon}
- Description:
Return the Object's Icon.
- Source:
Returns:
- Type
- baja.Icon
getNumber() → {Number}
- Description:
Return the
Number(itself).
- Source:
Returns:
- Type
- Number
getNumeric() → {Number}
- Description:
Returns the
Number(itself).
- Source:
Returns:
- Type
- Number
make(num) → {Number}
- Description:
Make a
Number.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
num |
Number | the number value. |
Returns:
- Type
- Number
newCopy() → {Number}
- Description:
New Copy.
- Source:
Returns:
- Type
- Number
toString(cxopt) → {String|Promise.<String>}
- Description:
Return the
Stringrepresentation of theDouble(itself).
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cx |
baja.Facets | Object |
<optional> |
used to specify formatting facets. The Properties
|
Returns:
returns a Promise if a cx is passed in.
(static) getFacetsFromINumeric(numeric) → {baja.Facets}
- Description:
Return facets from an INumeric
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
numeric |
baja.Value |
Returns:
- Type
- baja.Facets
(static) getNumberFromINumeric() → {Number}
- Description:
Return a
Numberfrom a BINumeric.
- Source:
Returns:
- Type
- Number
(static) make(num) → {Number}
- Description:
Make a
Number.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
num |
Number | the number value. |
Returns:
- Type
- Number