# U256 in DAML

**URL:** <https://forum.canton.network/t/u256-in-daml/8142>\
**Category:** App Development\
**Tags:** daml, daml-sdk\
**Created:** [August 18, 2025, 9:01am UTC](https://forum.canton.network/t/u256-in-daml/8142 "2025-08-18T09:01:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukasz2891](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/lukasz2891/32/7330_2.png) [@Lukasz2891](https://forum.canton.network/u/Lukasz2891)\
**Post date:** [August 18, 2025, 9:01am UTC](https://forum.canton.network/t/u256-in-daml/8142/1 "2025-08-18T09:01:36Z")

</div>

Does DAML support U256 (or another big numbers)?

---

<div class="post-metadata">

**Author:** ![WallaceKelly](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/wallacekelly/32/5046_2.png) [@WallaceKelly](https://forum.canton.network/u/WallaceKelly)\
**Post date:** [August 18, 2025, 1:29pm UTC](https://forum.canton.network/t/u256-in-daml/8142/2 "2025-08-18T13:29:59Z")

</div>

[Here are the built-in types](https://docs.digitalasset.com/build/3.4/reference/daml/data-types.html#reference-data-types), although note that BigNumeric was [deprecated](https://blog.digitalasset.com/developers/release-notes/2.9.1) with 2.9.1.

---

<div class="post-metadata">

**Author:** ![zhe\_bd](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/zhe_bd/32/7763_2.png) [@zhe\_bd](https://forum.canton.network/u/zhe_bd)\
**Post date:** [March 13, 2026, 2:49pm UTC](https://forum.canton.network/t/u256-in-daml/8142/3 "2026-03-13T14:49:08Z")

</div>

Will daml bring back the BigNumeric at some point?

---

<div class="post-metadata">

**Author:** ![bernhard](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bernhard/32/356_2.png) [@bernhard](https://forum.canton.network/u/bernhard)\
**Post date:** [March 13, 2026, 5:13pm UTC](https://forum.canton.network/t/u256-in-daml/8142/4 "2026-03-13T17:13:12Z")

</div>

Hi @zhe_bd , It’s all a question of demand and justification of the cost. Just out of interest, if you had the choice between BigNumeric (arbitrary precision fixed point type) or low level binary types like U256 (the topic of this thread), which would you rather have and why?

---

<div class="post-metadata">

**Author:** ![zhe\_bd](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/zhe_bd/32/7763_2.png) [@zhe\_bd](https://forum.canton.network/u/zhe_bd)\
**Post date:** [March 23, 2026, 3:54pm UTC](https://forum.canton.network/t/u256-in-daml/8142/5 "2026-03-23T15:54:17Z")

</div>

Hi @bernhard ! Sorry for the late response! For some reason I thought I have already replied here.

We need U256 or BigNumeric for our CLMM implementation. Without them we will have to emulate but it is not ideal. Will it increase the node operators’ cost if we bring it back?

---

<div class="post-metadata">

**Author:** ![bernhard](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bernhard/32/356_2.png) [@bernhard](https://forum.canton.network/u/bernhard)\
**Post date:** [March 27, 2026, 7:43am UTC](https://forum.canton.network/t/u256-in-daml/8142/6 "2026-03-27T07:43:38Z")

</div>

I think U256 gives you a lot more control over tx cost and size than BigNumeric and has more general applicability. BigNumeric is really there to do math with arbitrary precision - e.g. on-chain pricing. And how large it is once serialized is fairly opaque.  
U256 can be used also for binary operations, cryptographic operations etc. and you know how much it adds to your transaction: 32 bytes.  
Therefore I’d favour introducing U256 over bringing back BigNumeric.

---

<div class="post-metadata">

**Author:** ![zhe\_bd](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/zhe_bd/32/7763_2.png) [@zhe\_bd](https://forum.canton.network/u/zhe_bd)\
**Post date:** [March 27, 2026, 8:33am UTC](https://forum.canton.network/t/u256-in-daml/8142/7 "2026-03-27T08:33:40Z")

</div>

Make sense! What does it take to introduce U256?

---

<div class="post-metadata">

**Author:** ![zhe\_bd](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/zhe_bd/32/7763_2.png) [@zhe\_bd](https://forum.canton.network/u/zhe_bd)\
**Post date:** [March 30, 2026, 4:06pm UTC](https://forum.canton.network/t/u256-in-daml/8142/8 "2026-03-30T16:06:04Z")

</div>

@bernhard do you think it is a good candidate for a dev grant project?

---

<div class="post-metadata">

**Author:** ![zhe\_bd](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/zhe_bd/32/7763_2.png) [@zhe\_bd](https://forum.canton.network/u/zhe_bd)\
**Post date:** [April 6, 2026, 6:46pm UTC](https://forum.canton.network/t/u256-in-daml/8142/9 "2026-04-06T18:46:30Z")

</div>

Hey @Lukasz2891 What did your team end up solving this issue?

---

<div class="post-metadata">

**Author:** ![Curtis\_Hrischuk](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/curtis_hrischuk/32/3036_2.png) [@Curtis\_Hrischuk](https://forum.canton.network/u/Curtis_Hrischuk)\
**Post date:** [April 8, 2026, 12:53pm UTC](https://forum.canton.network/t/u256-in-daml/8142/10 "2026-04-08T12:53:50Z")

</div>

Hi. This thread has kicked off an internal discussion about opening up the Daml language development and we are open to a dev grant. However, keeping Daml secure in such a model needs some considerations and we are discussing that. Please give us a couple of weeks and we’ll get back to you.

---

<div class="post-metadata">

**Author:** ![zhe\_bd](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/zhe_bd/32/7763_2.png) [@zhe\_bd](https://forum.canton.network/u/zhe_bd)\
**Post date:** [April 8, 2026, 3:36pm UTC](https://forum.canton.network/t/u256-in-daml/8142/11 "2026-04-08T15:36:31Z")

</div>

Make sense! I also created a grant proposal using a daml library approach instead of modifying the daml itself: [Proposal: daml-u256 by zheli · Pull Request #177 · canton-foundation/canton-dev-fund · GitHub](https://github.com/canton-foundation/canton-dev-fund/pull/177/changes)

Would love to hear your feedback on it.
