/Big-Number-Calculator

You can perform calculations with Large Numbers in Minecraft.

Primary LanguagemcfunctionApache License 2.0Apache-2.0

Banner

license Version LastUpdate Gitmoji

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)

Disclaimer

[Apache License, Version 2.0]

This datapack is released under the Apache License, Version 2.0, see LICENSE.

How to Install

  1. Download this data pack
  2. Put the zip file into the "datapacks" folder of the saved data of ver 1.16.5 (Java Edition)
  3. Enjoy!

Features

Notation of Large Numbers

<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.

Basic Arithmetic Operations

  • Addition
    /function big_calc:calculate/addition
  • Subtraction
    /function big_calc:calculate/subtraction
  • Multiplication
    /function big_calc:calculate/multiplication
  • Division
    /function big_calc:calculate/division

Scoreboard Conversions

*These functions are not recommended behavior and accurate results are not guaranteed at this time.

Conversion of Operands

  1. /scoreboard players operation @s bc.num_1 = @s
  2. /scoreboard players operation @s bc.num_2 = @s
  3. /function big_calc:convert

Conversion of Operation Results

*If the operation result exceeds the conventional scoreboard limit, no conversion will be performed.

  1. /function big_calc:reconvert
  2. /scoreboard players operation @s = @s bc.cv_num
  3. /scoreboard players operation @s = @s bc.cv_rm
    *You can use the above command to find the remainder of the division.

Recommendations

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.

About Contributing

Please refer to Contributing.md regarding cooperation in the development of this data pack.