# Pad-with-zeroes

**URL:** <https://forum.xod.io/t/pad-with-zeroes/1632>\
**Category:** Uncategorized\
**Created:** [December 28, 2018, 1:21am UTC](https://forum.xod.io/t/pad-with-zeroes/1632 "2018-12-28T01:21:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jh295](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jh295](https://forum.xod.io/u/jh295)\
**Post date:** [December 28, 2018, 1:21am UTC](https://forum.xod.io/t/pad-with-zeroes/1632/1 "2018-12-28T01:21:17Z")

</div>

This might be a dumb question - but has the core node “pad-with-zeroes” ([https://xod.io/libs/xod/core/pad-with-zeroes/](https://xod.io/libs/xod/core/pad-with-zeroes/)) been removed, replaced or shifted from the latest version of XOD?

(I need something like this for formatting number display on an LCD screen)

Jim H.

---

<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:** [December 28, 2018, 1:28am UTC](https://forum.xod.io/t/pad-with-zeroes/1632/2 "2018-12-28T01:28:42Z")

</div>

Hi Jim, can it be this? `cast-number-to-hex-string`

[cnths.xodball](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/13cc8169bbd4e41a70a4ba52152d2661cd8cf317.xodball) (2.0 KB)

---

<div class="post-metadata">

**Author:** ![jh295](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jh295](https://forum.xod.io/u/jh295)\
**Post date:** [December 28, 2018, 1:51am UTC](https://forum.xod.io/t/pad-with-zeroes/1632/3 "2018-12-28T01:51:41Z")

</div>

Well, it’s just for padding an ascii number with leading zeroes for regularly formatted display as a string. (reinstalled XOD 0.26, but it didn’t reappear, in case I murdered it!) - and xod/datetime/format-timestamp shows an error, as it uses this node. Puzzling. J.

---

<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:** [December 28, 2018, 2:34am UTC](https://forum.xod.io/t/pad-with-zeroes/1632/4 "2018-12-28T02:34:56Z")

</div>

> [@jh295](#):
>
> number with leading zeroes

> [@How to maintain 0 in LCD](https://forum.xod.io/t/how-to-maintain-0-in-lcd/653):
>
> Hello is there any way to maintain 0 in the LCD? for example i want to show the clock from RTC and the time now is 04:04 but the display will only show 4:4 i already ask similar question a few month ago but unfortunately XOD still not support it thanks for the support slight_smile

---

<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:** [December 28, 2018, 2:38am UTC](https://forum.xod.io/t/pad-with-zeroes/1632/5 "2018-12-28T02:38:08Z")

</div>

> [@jh295](#):
>
> and xod/datetime/format-timestamp shows an error

upload screenshot error

> [@jh295](#):
>
> as it uses this node

In project, make new patch. And open cnths.xodball open node, copy all and paste in new patch of project.

---

<div class="post-metadata">

**Author:** ![brusher\_ru](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher_ru/32/12_2.png) [@brusher\_ru](https://forum.xod.io/u/brusher_ru)\
**Post date:** [December 28, 2018, 9:38am UTC](https://forum.xod.io/t/pad-with-zeroes/1632/6 "2018-12-28T09:38:39Z")

</div>

If you changed something in `xod/core` library and then saved a project — it saves a changed standard library into your workspace. So in this case you will not see any updates in standard library until you’ll remove it from your workspace or rename it.

Check out ` __lib__ ` folder in your workspace directory.

---

<div class="post-metadata">

**Author:** ![jh295](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jh295](https://forum.xod.io/u/jh295)\
**Post date:** [December 28, 2018, 1:05pm UTC](https://forum.xod.io/t/pad-with-zeroes/1632/7 "2018-12-28T13:05:11Z")

</div>

Thanks brusher\_ru - wasn’t aware that I’d altered the standard library - and your tip fixed things. Jim H.

---

<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:** [December 30, 2018, 1:05pm UTC](https://forum.xod.io/t/pad-with-zeroes/1632/8 "2018-12-30T13:05:17Z")

</div>

Closed on December 30, 2018, 1:05pm UTC

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