Login

Fancade Wiki

Updated Number.md (markdown)

... ...
@@ -1,3 +1,5 @@
1
[[uploads/Number1.png | width=336px, alt=Number]]
2
1 3
Outputs a given value.
2 4
3 5
To change the value to output, select the block, then tap the button right below the open inventory (+) button, in the bottom right corner.
... ...
@@ -6,12 +8,19 @@ To change the value to output, select the block, then tap the button right below
6 8
7 9
This will open up the keypad, which you can use to change the value that the number script block will output.
8 10
9
# Numbers
11
## Notes
12
10 13
The number is the most common data type. Numbers are represented by blue wires.
11 14
12
Numbers are stored as [[32-bit floats|https://en.wikipedia.org/wiki/Single-precision_floating-point_format]].
15
Numbers are stored as 32-bit floats. To be precise, they are stored as [[IEEE-754 floating point numbers|https://en.wikipedia.org/wiki/Single-precision_floating-point_format#IEEE_754_standard:_binary32]].
13 16
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.
14 17
15 18
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|Add Numbers]] numbers together. The margin of error is usually tiny, but gets larger the more digits you have.
16 19
17
[[uploads/Number1.png | width=336px, alt=Number]]
... ...
\ No newline at end of file
0
Numbers using decimals may also give rounding errors as well.
1
2
## Related
3
4
- [[Truth (True & False)]]
5
- [[Vector]]
6
- [[Rotation]]
... ...
\ No newline at end of file
Fancade Wiki