# \[X\] $num doesn't work as described

**URL:** https://community.mp3tag.de/t/x-num-doesnt-work-as-described/11257
**Category:** No Bugs
**Created:** [December 9, 2010, 12:48am UTC](https://community.mp3tag.de/t/x-num-doesnt-work-as-described/11257 "2010-12-09T00:48:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Oblio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/oblio/32/4828_2.png) [@Oblio](https://community.mp3tag.de/u/Oblio)
#### Post date: [December 9, 2010, 12:48am UTC](https://community.mp3tag.de/t/x-num-doesnt-work-as-described/11257/1 "2010-12-09T00:48:05Z")

</div>

The description for the $num function in the help file is "Pad decimal number with leading zeros" but it only returns the integer part of a decimal number with leading zeros.

i.e. if x=1.1

$num(x,2) returns 01  
$num(x,3) returns 001

Either the decription is wrong or the function is not working.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [December 9, 2010, 2:05am UTC](https://community.mp3tag.de/t/x-num-doesnt-work-as-described/11257/2 "2010-12-09T02:05:13Z")

</div>

> [@Oblio](#):
>
> The description for the $num function in the help file is "Pad decimal number with leading zeros" but it only returns the integer part of a decimal number with leading zeros. ... Either the decription is wrong or the function is not working.

See also:  
[$num(x,y) Funktionsverhalten ist inkonsistent.](https://community.mp3tag.de/t/10287/1)

DD.20101209.0407.CET

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 28, 2018, 2:30pm UTC](https://community.mp3tag.de/t/x-num-doesnt-work-as-described/11257/3 "2018-12-28T14:30:13Z")

</div>

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