We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef9f41c commit 0d2c5e3Copy full SHA for 0d2c5e3
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/MathModuleBuiltins.java
@@ -78,6 +78,8 @@ public MathModuleBuiltins() {
78
builtinConstants.put("pi", Math.PI);
79
builtinConstants.put("e", Math.E);
80
builtinConstants.put("tau", 2 * Math.PI);
81
+ builtinConstants.put("inf", Double.POSITIVE_INFINITY);
82
+ builtinConstants.put("nan", Double.NaN);
83
}
84
85
@TypeSystemReference(PythonArithmeticTypes.class)
0 commit comments