Extension of {@link LuaNumber} which can hold a Java double as its value.
These instance are not instantiated directly by clients, but indirectly via the static functions {@link LuaValue#valueOf(int)} or {@link LuaValue#valueOf(double)}functions. This ensures that values which can be represented as int are wrapped in {@link LuaInteger} instead of {@link LuaDouble}.
Almost all API's implemented in LuaDouble are defined and documented in {@link LuaValue}.
However the constants {@link #NAN}, {@link #POSINF}, {@link #NEGINF}, {@link #JSTR_NAN}, {@link #JSTR_POSINF}, and {@link #JSTR_NEGINF} may be useful when dealing with Nan or Infinite values.
LuaDouble also defines functions for handling the unique math rules of lua devision and modulo in
- {@link #ddiv(double,double)}
- {@link #ddiv_d(double,double)}
- {@link #dmod(double,double)}
- {@link #dmod_d(double,double)}
@see LuaValue
@see LuaNumber
@see LuaInteger
@see LuaValue#valueOf(int)
@see LuaValue#valueOf(double)