|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use LNumber | |
|---|---|
| org.luaj.vm | |
| Uses of LNumber in org.luaj.vm |
|---|
| Subclasses of LNumber in org.luaj.vm | |
|---|---|
class |
LDouble
|
class |
LInteger
|
| Methods in org.luaj.vm that return LNumber | |
|---|---|
LNumber |
LuaState.checknumber(int narg)
Checks whether the function argument narg is a number and
returns this number. |
static LNumber |
LoadState.longBitsToLuaNumber(long bits)
|
abstract LNumber |
Platform.mathop(int id,
LNumber x)
Compute a math operation that takes a single double argument and returns a double |
abstract LNumber |
Platform.mathop(int id,
LNumber x,
LNumber y)
Compute a math operation that takes a two double arguments and returns a double |
abstract LNumber |
Platform.mathPow(LNumber base,
LNumber exponent)
Compute math.pow() for two numbers using double math when available. |
static LNumber |
LDouble.numberOf(double z)
Convert to LNumber, using LInteger if possible |
LNumber |
LuaState.optnumber(int narg,
LNumber d)
If the function argument narg is a number, returns this
number. |
LNumber |
Platform.unsupportedMathOp()
Throw an error indicating the math operation is not accepted |
| Methods in org.luaj.vm with parameters of type LNumber | |
|---|---|
abstract LNumber |
Platform.mathop(int id,
LNumber x)
Compute a math operation that takes a single double argument and returns a double |
abstract LNumber |
Platform.mathop(int id,
LNumber x,
LNumber y)
Compute a math operation that takes a two double arguments and returns a double |
abstract LNumber |
Platform.mathPow(LNumber base,
LNumber exponent)
Compute math.pow() for two numbers using double math when available. |
LNumber |
LuaState.optnumber(int narg,
LNumber d)
If the function argument narg is a number, returns this
number. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||