# How to truncate (or ideally round) TBPM value?

**URL:** https://community.mp3tag.de/t/how-to-truncate-or-ideally-round-tbpm-value/4368
**Category:** General Discussion
**Created:** [January 22, 2007, 2:35pm UTC](https://community.mp3tag.de/t/how-to-truncate-or-ideally-round-tbpm-value/4368 "2007-01-22T14:35:15Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Hercules](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/9f8e36/32.png) [@Hercules](https://community.mp3tag.de/u/Hercules)
#### Post date: [January 22, 2007, 2:35pm UTC](https://community.mp3tag.de/t/how-to-truncate-or-ideally-round-tbpm-value/4368/1 "2007-01-22T14:35:15Z")

</div>

Hi,

I've tagged all my MP3 files using a free tool called MixMeister.

It has written the info into the TBPM tag to 2 decimal places. This is not quite in line with the ID3 standard (which states that the TBPM tag should contain an integer) and that is causing problems with other software.

I'd like to run an Action to conver all the TBPM values to integer.

Ideally I'd like to round the values - so, for example, that 140.25 would become 140, and 140.81 would become 141 - although guess that's quite a tall order!

So, alternatively, I'd just like to truncate the values by removing the decimal places and two following numbers, so 140.25 or 140.81 would just become 140.

I haven't quite worked out how to write custom actions, so would be very grateful if someone could suggest the correct syntax for me!

Thanks in advance,

Hercules

---

_[View the full topic](https://community.mp3tag.de/t/how-to-truncate-or-ideally-round-tbpm-value/4368)._
