# Byte to int (vice versa) conversion and comparison in Teal

**URL:** <https://forum.algorand.co/t/byte-to-int-vice-versa-conversion-and-comparison-in-teal/3274>\
**Category:** General\
**Tags:** teal, smart-contracts\
**Created:** [May 12, 2021, 8:13am UTC](https://forum.algorand.co/t/byte-to-int-vice-versa-conversion-and-comparison-in-teal/3274 "2021-05-12T08:13:54Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pagito](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@pagito](https://forum.algorand.co/u/pagito)\
**Post date:** [May 13, 2021, 2:16pm UTC](https://forum.algorand.co/t/byte-to-int-vice-versa-conversion-and-comparison-in-teal/3274/7 "2021-05-13T14:16:36Z")

</div>

Awesome! thanks. Updating SDK from 1.8.1 to 1.9.1 solved the issue with the encodeUint64 function.

---

_[View the full topic](https://forum.algorand.co/t/byte-to-int-vice-versa-conversion-and-comparison-in-teal/3274)._
