# Is there a "fixed" floating point in Zig?

**URL:** <https://ziggit.dev/t/is-there-a-fixed-floating-point-in-zig/18641>\
**Category:** Help\
**Tags:** language\
**Created:** [November 30, 2026, 5:49am UTC](https://ziggit.dev/t/is-there-a-fixed-floating-point-in-zig/18641 "2026-11-30T05:49:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericlang](https://ziggit.dev/user_avatar/ziggit.dev/ericlang/32/8515_2.png) [@ericlang](https://ziggit.dev/u/ericlang)\
**Post date:** [November 30, 2026, 5:49am UTC](https://ziggit.dev/t/is-there-a-fixed-floating-point-in-zig/18641/1 "2026-11-30T05:49:28Z")

</div>

In ancient times - in Delphi - we had a “Currency” floating point type. I believe it has a fixed 4 digits precision.  
Is there something alike in Zig? Or should I fabricate it myself using some i64 value (if I ever need it)?

---

<div class="post-metadata">

**Author:** ![npc1054657282](https://ziggit.dev/user_avatar/ziggit.dev/npc1054657282/32/5790_2.png) [@npc1054657282](https://ziggit.dev/u/npc1054657282)\
**Post date:** [November 30, 2026, 6:14am UTC](https://ziggit.dev/t/is-there-a-fixed-floating-point-in-zig/18641/2 "2026-11-30T06:14:42Z")

</div>

It’s an accepted proposal.

> <https://github.com/ziglang/zig/issues/1974>
>
> I discovered Zig yesterday and have spent pretty much all my time since then del…ving into it and reading various materials on it. Loving it so far.
> 
> One feature that I feel is missing currently is built-in support for fixed-point numbers. As the language doesn't allow operator overloading, this isn't something I could implement in user code and use like any other numeric type. For reference, the \[Embedded C standard\](http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1169.pdf) specifies support for such numbers (refer to Annex A), although I'm not aware of any C compiler that supports them for a desktop target.
> 
> I found it interesting that Zig offers support for variable-width integers through \`i#\` and \`u#\`. I wonder if this could be applied to fixed-point numbers by supporting some form of Q-notation, perhaps?

---

<div class="post-metadata">

**Author:** ![hvbargen](https://ziggit.dev/user_avatar/ziggit.dev/hvbargen/32/5696_2.png) [@hvbargen](https://ziggit.dev/u/hvbargen)\
**Post date:** [November 30, 2026, 7:02am UTC](https://ziggit.dev/t/is-there-a-fixed-floating-point-in-zig/18641/3 "2026-11-30T07:02:28Z")

</div>

It’s not quite clear to me if this is based on the decimal system or binary system?
