# Convert a number to a byte array

**URL:** <https://discourse.julialang.org/t/convert-a-number-to-a-byte-array/111867>\
**Category:** New to Julia\
**Created:** [March 20, 2024, 11:26am UTC](https://discourse.julialang.org/t/convert-a-number-to-a-byte-array/111867 "2024-03-20T11:26:32Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [March 20, 2024, 5:53pm UTC](https://discourse.julialang.org/t/convert-a-number-to-a-byte-array/111867/21 "2024-03-20T17:53:15Z")

</div>

Yes, certainly. It may require using a style which is similar to how the C code would be optimized.

[Previous page](https://discourse.julialang.org/t/convert-a-number-to-a-byte-array/111867.md?page=1)
