<p>Gateways can refuse to issue or redeem fractional amounts and users can refuse to pay them. But there is no authority to say to someone "you may not hold a fractional amount of this currency". Nobody can stop you from holding fractional amounts if you wish to.</p>

CC BY-SA 3.0
2014-02-10T03:05:20.730Z
2014-02-10T03:05:20.730Z
David Schwartz
<p>I understand with Ripple that anyone on the network can offer their own currency.  Someone cited the example of airline frequent flier miles.</p>

<p>Airline miles, in my experience, come in whole numbers.  I.e. 2000 miles, not 1999.5 miles.</p>

<p>If I start trading miles on Ripple, someone could easily offer to buy or sell in fractional units.  So balances in ripple wallets could be 1999.5 miles, right?</p>

<p>Is there any way in Ripple to force the units of a particular currency to be integers?</p>

<p>I'm asking about what appears in the wallets.  I know that within the system the units are integers.  I.e. 1 XRP = 1,000,000 drops.  I'm asking about the balances shown to users in their wallets.</p>

CC BY-SA 3.0
2014-02-09T21:47:56.387Z
You can round down when processing orders and let your users know this.
John T
CC BY-SA 3.0
2014-02-10T01:20:42.773Z
As @JacobTorba says, this is what TTBit does with his [DYM currency](https://ripple.com/forum/viewtopic.php?f=3&t=2292).
dchapes
CC BY-SA 3.0
2014-02-10T01:24:17.367Z
Instead of integers it would be better if each currency could specify their divisibility. I.e 1.0 for airline miles, 0.01 for USD, 10.0 for XAU from a gateway with only 10 oz bars, etc. However, I for one like the ability to have sub-cent accounting for my USD and other currencies. Probably better if it was an option on trade offers themselves for someone not wanting to get or give a fractional amount for a specific offer.
dchapes
<ripple><iou>
Can ripple currency units be integers?
Dave Cohen
# Can ripple currency units be integers?

(Asked by: username_0 on 2014-02-09)

I understand with Ripple that anyone on the network can offer their own currency. Someone cited the example of airline frequent flier miles.

Airline miles, in my experience, come in whole numbers. I.e. 2000 miles, not 1999.5 miles.

If I start trading miles on Ripple, someone could easily offer to buy or sell in fractional units. So balances in ripple wallets could be 1999.5 miles, right?

Is there any way in Ripple to force the units of a particular currency to be integers?

I'm asking about what appears in the wallets. I know that within the system the units are integers. I.e. 1 XRP = 1,000,000 drops. I'm asking about the balances shown to users in their wallets.

**Tags:** ripple, iou

> **Comments:**
> **username_1**: You can round down when processing orders and let your users know this.  
> **username_2**: As @JacobTorba says, this is what TTBit does with his [DYM currency](https://ripple.com/forum/viewtopic.php?f=3&t=2292).  
> **username_2**: Instead of integers it would be better if each currency could specify their divisibility. I.e 1.0 for airline miles, 0.01 for USD, 10.0 for XAU from a gateway with only 10 oz bars, etc. However, I for one like the ability to have sub-cent accounting for my USD and other currencies. Probably better if it was an option on trade offers themselves for someone not wanting to get or give a fractional amount for a specific offer.  

---

## 1 answers

### Answer by username_3 on 2014-02-10. Score: 2 | Accepted answer

Gateways can refuse to issue or redeem fractional amounts and users can refuse to pay them. But there is no authority to say to someone "you may not hold a fractional amount of this currency". Nobody can stop you from holding fractional amounts if you wish to.


---

