Drop one NPC to another · published · build 18413500
The precision of the calculator application has been improved to the highest precision that can be achieved by a scientific calculator. In addition, the operability of the calculator application has been improved, so that now when you have finished typing the last calculation, the result will not only be displayed but also the cursor will be moved to the back of the result automatically, so that it is convenient for the next calculation by using the last result. This calculator solves the problem that traditional calculators on the computer are not intuitive, its calculation rules are exactly the same as those in the maths textbook, and the history is also displayed intuitively.
+ Addition: 5 + 3 → 8
- Subtraction: 10 - 4 → 6
* Multiplication: 3 * 7 → 21
/ Division: 15 / 3 → 5 (returns float)
% Modulo (remainder): 10 % 3 → 1
sqrt(x) – Square root: sqrt(25) → 5
pow(x, y) – Power (xʸ): pow(3, 2) → 9
^ is the bitwise XOR operator. If you want to calculate the power, use pow()
Therefore, 2^3=1, pow(2,3)=8
log(x) – Natural logarithm (base *e*): log(10) → ≈2.30258509299405
sin(x) – Sine (radians): sin(PI/2) → 1
cos(x) – Cosine (radians): cos(PI) → -1
tan(x) – Tangent (radians): tan(PI/4) → 1
asin(x) – Arcsine: asin(1) → ≈1.57079632679490 (PI/2)
acos(x) – Arccosine: acos(0) → ≈1.57079632679490
atan(x) – Arctangent: atan(1) → ≈0.78539816339745 (PI/4)
PI or pi – π
Example: PI * 2 → ≈6.28318530717959
E or e – Euler’s number
Example: log(e) → 1