Exemple #1
0
 public LuaValue mod(int rhs) {
   return LuaDouble.dmod(checkarith(), rhs);
 }
Exemple #2
0
 public LuaValue modFrom(double lhs) {
   return LuaDouble.dmod(lhs, checkarith());
 }
Exemple #3
0
 public LuaValue div(int rhs) {
   return LuaDouble.ddiv(checkarith(), rhs);
 }
Exemple #4
0
 public LuaValue divInto(double lhs) {
   return LuaDouble.ddiv(lhs, checkarith());
 }
Exemple #5
0
 public LuaValue modFrom(double lhs) {
   return LuaDouble.dmod(lhs, v);
 }
Exemple #6
0
 /**
  * Return a LuaNumber that represents the value provided
  *
  * @param l long value to represent.
  * @return LuaNumber that is eithe LuaInteger or LuaDouble representing l
  * @see LuaValue#valueOf(int)
  * @see LuaValue#valueOf(double)
  */
 public static LuaNumber valueOf(long l) {
   int i = (int) l;
   return l == i
       ? (i <= 255 && i >= -256 ? intValues[i + 256] : (LuaNumber) new LuaInteger(i))
       : LuaDouble.valueOf(l);
 }
Exemple #7
0
 public LuaValue divInto(double lhs) {
   return LuaDouble.ddiv(lhs, v);
 }
Exemple #8
0
 public LuaValue mod(int rhs) {
   return LuaDouble.dmod(v, rhs);
 }
Exemple #9
0
 public LuaValue div(int rhs) {
   return LuaDouble.ddiv(v, rhs);
 }
Exemple #10
0
 public LuaValue mul(double lhs) {
   return LuaDouble.valueOf(lhs * v);
 }
Exemple #11
0
 public LuaValue subFrom(double lhs) {
   return LuaDouble.valueOf(lhs - v);
 }
Exemple #12
0
 public LuaValue sub(int rhs) {
   return LuaDouble.valueOf(v - rhs);
 }
Exemple #13
0
 public LuaValue add(double lhs) {
   return LuaDouble.valueOf(lhs + v);
 }