# Complex math calculation

**URL:** <https://forum.algorand.co/t/complex-math-calculation/6304>\
**Category:** General\
**Tags:** smart-contracts\
**Created:** [March 21, 2022, 6:50am UTC](https://forum.algorand.co/t/complex-math-calculation/6304 "2022-03-21T06:50:36Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![hungpq](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hungpq](https://forum.algorand.co/u/hungpq)\
**Post date:** [March 21, 2022, 11:50pm UTC](https://forum.algorand.co/t/complex-math-calculation/6304/5 "2022-03-21T23:50:15Z")

</div>

Ok i’ll tell you more detail  
I’m writing Log in contract. Are there any best practice for this? As i know log only accept log for 1 bytes. So i have to put all parametters in a single bytes. Thats why i asked this question.  
For example with the question i ask, i want to log the value 00000000000000040000000000000007 To express the 2 value 4 and 7. So the log-reader can understand it is 2 params, each 64 bit.  
So i think the question here should be how to express 2 uint64 in a single bytes?

---

_[View the full topic](https://forum.algorand.co/t/complex-math-calculation/6304)._
