Stream: beginners

Topic: Convert between U32 & U64?


view this post on Zulip jan kili (Jan 14 2022 at 16:24):

Though the number bitsize conversion builtins (Num.toU64, Num.toI8, etc.) aren't implemented yet, is there any workaround I can use? I expect that Roc code can't access the underlying bits and that no workaround is possible.

view this post on Zulip Brendan Hansknecht (Jan 14 2022 at 16:33):

Are to and from string done, that may be a work around. Not sure the current state, but I thought they were finally in.


Last updated: Jul 06 2025 at 12:14 UTC