Class baja.Float
Extends
baja.Simple.
Represents a baja:Float in BajaScript.
Boxes JavaScript Number to represent a baja:Float.
When creating a Simple, always use the 'make' method instead of creating a new Object.
Defined in: obj.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
baja.Float.DEFAULT
Default Float instance.
|
| <static> |
baja.Float.MAX_VALUE
Float Max Value.
|
| <static> |
baja.Float.MIN_VALUE
Float Min Value.
|
| <static> |
baja.Float.NAN
Float Not A Number.
|
| <static> |
baja.Float.NEGATIVE_INFINITY
Float Negative Infinity.
|
| <static> |
baja.Float.POSITIVE_INFINITY
Float Positive Infinity.
|
- Fields borrowed from class baja.Value:
- newCopy
- Fields borrowed from class baja.Object:
- equivalent, getIcon
| Method Attributes | Method Name and Description |
|---|---|
|
decodeFromString(str)
Decode a Float from a String.
|
|
|
Encode the Float to a String.
|
|
|
equals(obj)
Equality test.
|
|
|
Return the Symbol used for encoding this data type (primarily used for facets).
|
|
| <static> |
baja.Float.make(num)
Make a Float.
|
|
make(num)
Make a Float.
|
|
|
toString(facets)
Return the String representation of a Float.
|
|
|
valueOf()
Return the Number encapsulated in the Float.
|
Field Detail
<static>
baja.Float.DEFAULT
Default Float instance.
<static>
baja.Float.MAX_VALUE
Float Max Value.
<static>
baja.Float.MIN_VALUE
Float Min Value.
<static>
baja.Float.NAN
Float Not A Number.
<static>
baja.Float.NEGATIVE_INFINITY
Float Negative Infinity.
<static>
baja.Float.POSITIVE_INFINITY
Float Positive Infinity.
Method Detail
{baja.Float}
decodeFromString(str)
Decode a Float from a String.
- Parameters:
- {String} str
- Returns:
- {baja.Float}
{String}
encodeToString()
Encode the Float to a String.
- Returns:
- {String}
{Boolean}
equals(obj)
Equality test.
- Parameters:
- obj
- Returns:
- {Boolean}
{String}
getDataTypeSymbol()
Return the Symbol used for encoding this data type (primarily used for facets).
- Returns:
- {String}
<static>
{baja.Float}
baja.Float.make(num)
Make a Float.
- Parameters:
- {Number} num
- the Float for the Simple.
- Returns:
- {baja.Float} the Float.
{baja.Float}
make(num)
Make a Float.
- Parameters:
- {Number} num
- the Float for the Simple.
- Returns:
- {baja.Float} the Float.
toString(facets)
Return the String representation of a Float.
- Parameters:
- {baja.Facets|Object} facets Optional
- used to specify the 'precision'. The argument can also be an Object Literal.
- Returns:
- String
{Number}
valueOf()
Return the Number encapsulated in the Float.
- Returns:
- {Number} Number for the Float.