# Limits on Btoi() in PyTEAL

**URL:** <https://forum.algorand.co/t/limits-on-btoi-in-pyteal/3769>\
**Category:** General\
**Tags:** docs, teal\
**Created:** [July 14, 2021, 11:57pm UTC](https://forum.algorand.co/t/limits-on-btoi-in-pyteal/3769 "2021-07-14T23:57:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)\
**Post date:** [July 15, 2021, 12:36am UTC](https://forum.algorand.co/t/limits-on-btoi-in-pyteal/3769/2 "2021-07-15T00:36:58Z")

</div>

Your example will not work because `Btoi` does not convert a string representing a number.  
It takes as input a byte array representing a 64-bit number in big endian.  
See [How to convert "1" to 1 in Teal? - #2 by fabrice](https://forum.algorand.co/t/how-to-convert-1-to-1-in-teal/3585/2) and [Endianness - Wikipedia](https://en.wikipedia.org/wiki/Endianness#Example)

---

_[View the full topic](https://forum.algorand.co/t/limits-on-btoi-in-pyteal/3769)._
