# Fixed point decimal type

**URL:** https://discourse.julialang.org/t/fixed-point-decimal-type/2227
**Category:** Numerics
**Tags:** package
**Created:** [February 22, 2017, 3:15am UTC](https://discourse.julialang.org/t/fixed-point-decimal-type/2227 "2017-02-22T03:15:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fengyang.wang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fengyang.wang/32/104_2.png) [@fengyang.wang](https://discourse.julialang.org/u/fengyang.wang)
#### Post date: [February 22, 2017, 3:15am UTC](https://discourse.julialang.org/t/fixed-point-decimal-type/2227/1 "2017-02-22T03:15:24Z")

</div>

Is there a package that provides fixed point decimals? It seems that [FixedPointNumbers.jl](https://github.com/JuliaMath/FixedPointNumbers.jl) contains only binary fixed-point types and normed fixed-point types.

---

<div class="post-metadata">

### Author: ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)
#### Post date: [February 23, 2017, 8:06am UTC](https://discourse.julialang.org/t/fixed-point-decimal-type/2227/2 "2017-02-23T08:06:33Z")

</div>

I have not seen that package. How many digits on either side of the decimal point are of interest to you?

---

<div class="post-metadata">

### Author: ![fengyang.wang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fengyang.wang/32/104_2.png) [@fengyang.wang](https://discourse.julialang.org/u/fengyang.wang)
#### Post date: [February 24, 2017, 12:30am UTC](https://discourse.julialang.org/t/fixed-point-decimal-type/2227/3 "2017-02-24T00:30:34Z")

</div>

I am looking to generalize Currencies.jl’s fixed-point decimal type to a dimensionless one; see [https://github.com/JuliaFinance/Currencies.jl/pull/69](https://github.com/JuliaFinance/Currencies.jl/pull/69). The goal is to support an arbitrary number of decimal points, backed by an arbitrary integer type.
