# How to Extract Negative value in Payload function

**URL:** <https://www.thethingsnetwork.org/forum/t/how-to-extract-negative-value-in-payload-function/8821>\
**Category:** Application Development\
**Created:** [August 5, 2017, 6:58am UTC](https://www.thethingsnetwork.org/forum/t/how-to-extract-negative-value-in-payload-function/8821 "2017-08-05T06:58:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [August 5, 2017, 8:09am UTC](https://www.thethingsnetwork.org/forum/t/how-to-extract-negative-value-in-payload-function/8821/2 "2017-08-05T08:09:47Z")

</div>

See [Decrypting messages for dummies](https://www.thethingsnetwork.org/forum/t/decrypting-messages-for-dummies/4894/4) Or add some base value like 32,768 (the minimum value for a signed 16 bits integer) before sending, and subtract that again after decoding.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/how-to-extract-negative-value-in-payload-function/8821)._
