Tags
Creators
Details
2.2.0
Compatibility
Required content
Changes
New features:
- Added
piconstant (3.14159265...) for use in any expression. - Added
econstant (Euler's number, 2.71828182...) with smart conflict resolution: - Standalone
eoreafter an operator = Euler's number eafter a number (e.g.2e,5e) = Skyblock enchanted unit (160), same as before
pi * 2 = 6.283...
e^2 = 7.389...
2e = 320 (still enchanted unit)
ln(e) = 1
- Added factorial
!operator (postfix):
5! = 120
10! = 3,628,800
(3+2)! = 120
- Factorial is limited to non-negative integers up to 1000.
Bug fixes & code quality:
- Fixed
/calcsetevaluating the expression twice (causing duplicate history entries). - Fixed
isExpressionComplete()regex only checking 5 of 12 functions (was missinglog,ln,sin,cos,tan,min,max). - Fixed Ctrl+C shortcut missing from
/calchelpoutput. - Removed redundant
searchField2variable in Ctrl+C handler. - Removed dead
sessionResetNotifiedfield and methods fromCalculatorManager.
Documentation:
- Updated
/calchelp operatorsto include factorial. - Updated
/calchelp variablesto showpiandeas built-in constants. - Updated
/calchelp functionsto include factorial examples. - Updated README, Modrinth, and CurseForge descriptions with new features and examples.
Tests:
Added 21 new test cases for pi, e, and factorial (including edge cases).
Added new CalculatorManagerTest with 30+ test cases for looksLikeCalculation() heuristic.
Full Changelog: https://github.com/Rijzzz/NotEnoughCalculator/compare/v2.1.0...v2.2.0
Optional dependencies
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:dkEP7NUX:L4Sp8dDl"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:dkEP7NUX:L4Sp8dDl"
}

