<blockquote>
<p><strong>Question on the integer size</strong></p>
</blockquote>
<p>Bitcoin uses many sizes of integer from 8-bit integers up to at least 256-bit integers. It also has variable-size integers. It uses a mix of signed and unsigned integers.</p>
<blockquote>
<p><strong>Is there any kind of boolean division with bitcoin?</strong></p>
</blockquote>
<p>There is no kind of division at all <em>in Bitcoin scripting language</em> since <code>OP_DIV</code> and <code>OP_2DIV</code> were disabled.</p>
<p>I imagine fairly normal division is involved in calculating network difficulty and in calculating network time for checking block timestamps.</p>
<blockquote>
<p><strong>There has to be something before the decimal number.</strong></p>
</blockquote>
<p>The Bitcoin <em>network</em> probably doesn't have significant use for decimal numbers.</p>
<p>Units of money are integer Satoshi. There are 100,000,000 Satoshi per Bitcoin. The user interface of software sometimes converts money in integer Satoshis to some decimal unit such as Bitcoin or millibitcoin for user-interface purposes only. Internally it is all integers.</p>
<p>Hashes and signatures are mainly working with large integers so far as I know.</p>
<p>The compressed &quot;bits&quot; representation of network difficulty bears some superficial resemblance to floating point number representation but nothing else decimal-like occurs to me.</p>

CC BY-SA 4.0
2023-11-15T09:10:57.183Z
2023-11-15T10:55:51.607Z
2023-11-15T10:55:51.607Z
RedGrittyBrick
<p>Is there any kind of boolean division with bitcoin?  There has to be something before the decimal number.  Kind of say it seems like end to end and it always should be the number that is largest.</p>

CC BY-SA 4.0
2023-11-14T22:36:10.373Z
What do you mean by boolean division?
Vojtěch Strnad
<script><math>
Question on the integer size
Brent
# Question on the integer size

(Asked by: username_0 on 2023-11-14)

Is there any kind of boolean division with bitcoin? There has to be something before the decimal number. Kind of say it seems like end to end and it always should be the number that is largest.

**Tags:** script, math

> **Comments:**
> **username_1**: What do you mean by boolean division?  

---

## 1 answers

### Answer by username_2 on 2023-11-15. Score: 1

> **Question on the integer size**

Bitcoin uses many sizes of integer from 8-bit integers up to at least 256-bit integers. It also has variable-size integers. It uses a mix of signed and unsigned integers.

> **Is there any kind of boolean division with bitcoin?**

There is no kind of division at all *in Bitcoin scripting language* since `OP_DIV` and `OP_2DIV` were disabled.

I imagine fairly normal division is involved in calculating network difficulty and in calculating network time for checking block timestamps.

> **There has to be something before the decimal number.**

The Bitcoin *network* probably doesn't have significant use for decimal numbers.

Units of money are integer Satoshi. There are 100,000,000 Satoshi per Bitcoin. The user interface of software sometimes converts money in integer Satoshis to some decimal unit such as Bitcoin or millibitcoin for user-interface purposes only. Internally it is all integers.

Hashes and signatures are mainly working with large integers so far as I know.

The compressed "bits" representation of network difficulty bears some superficial resemblance to floating point number representation but nothing else decimal-like occurs to me.


---

