# Char - value change in simulation is 00h

**URL:** <https://forum.xod.io/t/char-value-change-in-simulation-is-00h/4014>\
**Category:** XOD Programming Questions\
**Created:** [May 26, 2020, 3:58am UTC](https://forum.xod.io/t/char-value-change-in-simulation-is-00h/4014 "2020-05-26T03:58:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [May 26, 2020, 3:58am UTC](https://forum.xod.io/t/char-value-change-in-simulation-is-00h/4014/1 "2020-05-26T03:58:08Z")

</div>

Both in simulation and in debug, the conversion of the `char` is correct only at the beginning, then when changing the `char` it goes to `00h`.

**Is this a bug?**

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/5/586cc4a7eeb6e8aae83820f095fe66c82cb5e472.png)

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [May 26, 2020, 2:30pm UTC](https://forum.xod.io/t/char-value-change-in-simulation-is-00h/4014/2 "2020-05-26T14:30:16Z")

</div>

It does seem to be a problem. Having a letter on startup produces correct output. Changing to any letter produces “00h” output. Changing to number outputs correct number. Changing back to character outputs 00h again.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [May 26, 2020, 3:13pm UTC](https://forum.xod.io/t/char-value-change-in-simulation-is-00h/4014/3 "2020-05-26T15:13:06Z")

</div>

That’s right, thanks for taking the time to check it out.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [June 25, 2020, 3:13pm UTC](https://forum.xod.io/t/char-value-change-in-simulation-is-00h/4014/4 "2020-06-25T15:13:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
