Number

Revision as of 19:08, 16 May 2024 by Nikitaivanov (talk | contribs) (Created page with "File:Number1.png Outputs a given value. To change the value to output, select the block, then tap the button right below the open inventory (+) button, in the bottom right corner. File:changenumvalue.png This will open up the keypad, which you can use to change the value that the number script block will output. == Notes == The number is the most common data type. Numbers are represented by blue wires. Numbers are stored as 32-bit floats. To be precise, th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

File:Number1.png

Outputs a given value.

To change the value to output, select the block, then tap the button right below the open inventory (+) button, in the bottom right corner.

File:Changenumvalue.png

This will open up the keypad, which you can use to change the value that the number script block will output.

Notes

The number is the most common data type. Numbers are represented by blue wires.

Numbers are stored as 32-bit floats. To be precise, they are stored as floating point numbers. This gives numbers a maximum value of **340,282,346,638,528,859,811,704,183,484,516,925,440**. Likewise, their minimum value is the negative of that.

Numbers have about 7 digits of precision. This means that numbers with 8 digits or more may begin to give slightly inaccurate results, e.g. when adding numbers together. The margin of error is usually tiny, but gets larger the more digits you have.

Numbers using decimals may also give rounding errors as well.

Related