@bitbybit-dev/base 1.0.0-rc.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -465,7 +465,7 @@ export declare class MathBitByBit {
|
|
|
465
465
|
* Safely evaluates a simple arithmetic expression containing only
|
|
466
466
|
* numbers, +, -, *, /, parentheses, and whitespace.
|
|
467
467
|
* Uses the shunting-yard algorithm — no eval/Function.
|
|
468
|
-
* Example:
|
|
468
|
+
* Example: '(3+2)*4' → 20, '10/3' → 3.3333...
|
|
469
469
|
* @param inputs arithmetic expression string
|
|
470
470
|
* @returns evaluated result
|
|
471
471
|
* @group operations
|
package/lib/api/services/math.js
CHANGED
|
@@ -664,7 +664,7 @@ export class MathBitByBit {
|
|
|
664
664
|
* Safely evaluates a simple arithmetic expression containing only
|
|
665
665
|
* numbers, +, -, *, /, parentheses, and whitespace.
|
|
666
666
|
* Uses the shunting-yard algorithm — no eval/Function.
|
|
667
|
-
* Example:
|
|
667
|
+
* Example: '(3+2)*4' → 20, '10/3' → 3.3333...
|
|
668
668
|
* @param inputs arithmetic expression string
|
|
669
669
|
* @returns evaluated result
|
|
670
670
|
* @group operations
|