Use Java's Math constants for Scarpet math constants
This commit is contained in:
1 parent
24b9c386ec
commit
ab9f7992b7
1 file changed
+2
-4
@@ -9,10 +9,8 @@ import carpet.script.value.NumericValue;
|
||||
import carpet.script.value.Value;
|
||||
|
||||
public class Arithmetic {
|
||||
public static final Value PI = new NumericValue(
|
||||
"3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679");
|
||||
public static final Value euler = new NumericValue(
|
||||
"2.71828182845904523536028747135266249775724709369995957496696762772407663");
|
||||
public static final Value PI = new NumericValue(Math.PI);
|
||||
public static final Value euler = new NumericValue(Math.E);
|
||||
|
||||
public static void apply(Expression expression)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user