English / 日本語
This is a datapack that allows you to calculate high-digit numbers!
Maybe no one (not even me!) will use it, so for offerings...
for ver 1.16.5 (Java Edition)
This datapack is released under the Apache License, Version 2.0, see LICENSE.
- Download this data pack
- Put the zip file into the "datapacks" folder of the saved data of ver 1.16.5 (Java Edition)
- Enjoy!
<1,K,M,B,T,...> can be found in this explanation.
Each is treated as a suffix representing 1,10^3,10^6,10^9,10^12,...
The actual execution should use 1~2 characters surrounded by commas.
1 | K | M | B | T | Qd | Qt | Sx | Sp | O | N | D |
---|---|---|---|---|---|---|---|---|---|---|---|
1 | 10^3 | 10^6 | 10^9 | 10^12 | 10^15 | 10^18 | 10^21 | 10^24 | 10^27 | 10^30 | 10^33 |
e.g. (1) 142,857 → 142 (K), 857 (1)
e.g. (2) 2,147,483,647 → 2 (B), 147 (M),483 (K), 647(1)
*Note that at this time, only calculations up to T(10^12) are supported.
*The terms to the right of the multiplication and division arithmetic can only be adapted to the scoreboard range as usual.
- Addition
/function big_calc:calculate/addition - Subtraction
/function big_calc:calculate/subtraction - Multiplication
/function big_calc:calculate/multiplication - Division
/function big_calc:calculate/division
*These functions are not recommended behavior and accurate results are not guaranteed at this time.
- /scoreboard players operation @s bc.num_1 = @s
- /scoreboard players operation @s bc.num_2 = @s
- /function big_calc:convert
*If the operation result exceeds the conventional scoreboard limit, no conversion will be performed.
- /function big_calc:reconvert
- /scoreboard players operation @s = @s bc.cv_num
- /scoreboard players operation @s = @s bc.cv_rm
*You can use the above command to find the remainder of the division.
Please back up your important data as needed. This is very important regardless of whether you use this data pack or not.
The "Scoreboard Conversion" function is an experimental feature and is not guaranteed to work properly at this time.
Please refer to Contributing.md regarding cooperation in the development of this data pack.