Mercurial Hosting > luan
comparison src/luan/modules/BasicLuan.java @ 1130:bfbd5401353a
add Number.float()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 11 Dec 2017 23:36:52 -0700 |
parents | 22652f4020fb |
children | 1f9d34a6f308 |
comparison
equal
deleted
inserted
replaced
1129:3234a14bb1f8 | 1130:bfbd5401353a |
---|---|
139 public static long assert_long(long v) throws LuanException { | 139 public static long assert_long(long v) throws LuanException { |
140 return v; | 140 return v; |
141 } | 141 } |
142 | 142 |
143 public static double assert_double(double v) throws LuanException { | 143 public static double assert_double(double v) throws LuanException { |
144 return v; | |
145 } | |
146 | |
147 public static float assert_float(float v) throws LuanException { | |
144 return v; | 148 return v; |
145 } | 149 } |
146 | 150 |
147 @LuanMethod public static byte[] assert_binary(byte[] v) throws LuanException { | 151 @LuanMethod public static byte[] assert_binary(byte[] v) throws LuanException { |
148 Utils.checkNotNull(v); | 152 Utils.checkNotNull(v); |