# Numeric formatting functions?

**URL:** https://community.mp3tag.de/t/numeric-formatting-functions/12663
**Category:** Support
**Created:** [November 6, 2011, 12:57am UTC](https://community.mp3tag.de/t/numeric-formatting-functions/12663 "2011-11-06T00:57:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)
#### Post date: [November 6, 2011, 12:57am UTC](https://community.mp3tag.de/t/numeric-formatting-functions/12663/1 "2011-11-06T00:57:18Z")

</div>

Are there any numeric formatting functions in Mp3tag that work with real numbers? I'd like to display a number formatted n.mm in the columns. For example:

60.43

I may be able to do it by repeating the expression and joining the two halves with a period, but the expression itself is very long and it would be very difficult to work with.

---

<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: [November 6, 2011, 3:05am UTC](https://community.mp3tag.de/t/numeric-formatting-functions/12663/2 "2011-11-06T03:05:26Z")

</div>

> [@JJ Johnson](#):
>
> Are there any numeric formatting functions in Mp3tag that work with real numbers? I'd like to display a number formatted n.mm in the columns. For example: 60.43 ...

Speaking of a real number, that means a number with integer part and fractional part, separated by a dot character, one can use the following scripting expression to align such numbers at the dot character ...

**'#'$regexp($repeat(' ',6)%NUMBER%$repeat(' ',6),'^.+(.{6})\.(.{6}).+$','$1.$2')'#'**

... or ...

**'#'$regexp($repeat(' ',6)%NUMBER%$repeat(' ',6),'^.+(.{6}\..{6}).+$','$1')'#'**

With NUMBER='123.45' the result will be **'# 123.45 #'**.

The surrounding "#" characters are set only for demonstrating the margins.  
Be aware, that this formatting is only a string manipulation, which does no mathematical rounding and truncates characters at the left edge and at the right edge, when the number string is too long.

DD.20111106.0505.CET

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:23pm UTC](https://community.mp3tag.de/t/numeric-formatting-functions/12663/3 "2026-02-09T12:23:25Z")

</div>


