# BPM erst runden, dann ganzzahlig ausgeben

**URL:** https://community.mp3tag.de/t/bpm-erst-runden-dann-ganzzahlig-ausgeben/6066
**Category:** Allgemein
**Created:** [January 14, 2008, 1:08pm UTC](https://community.mp3tag.de/t/bpm-erst-runden-dann-ganzzahlig-ausgeben/6066 "2008-01-14T13:08:01Z")
**Posts on this page:** 1
**Showing post:** 18

<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: [January 23, 2008, 5:58pm UTC](https://community.mp3tag.de/t/bpm-erst-runden-dann-ganzzahlig-ausgeben/6066/18 "2008-01-23T17:58:11Z")

</div>

**Nochmal:**  
'Ist die Ziffer an der ersten wegfallenden Dezimalstelle ... nicht größer als eine 4, wird abgerundet. Anderenfalls wird aufgerundet. _Die folgenden Nachkommastellen werden nicht berücksichtigt._'

**Runden auf ganze Zahl**

123.01 ==\> 123  
123.49 ==\> 123  
123.50 ==\> 124  
123.99 ==\> 124

Anfang Aktionengruppe **BPM.Runden.NK0** 

Aktion #1  
_Aktionstyp 5:_ **Tagfeld formatieren**  
_Feld \_\_\_\_\_\_\_:_ **BPM**  
_Formatstring:_ **$replace(%BPM\_MIXMEISTER%,'.',)**

 

Aktion #2  
_Aktionstyp 5:_ **Tagfeld formatieren**  
_Feld \_\_\_\_\_\_\_:_ **BPM**  
_Formatstring:_ **$div(%BPM%,10)**

 

Aktion #3  
_Aktionstyp 5:_ **Tagfeld formatieren**  
_Feld \_\_\_\_\_\_\_:_ **BPM**  
_Formatstring:_ **$ifgreater($mod(%BPM%,10),4,$add($div(%BPM%,10),1),$div(%BPM%,10))**

 

Aktion #4  
_Aktionstyp 5:_ **Tagfeld formatieren**  
_Feld \_\_\_\_\_\_\_:_ **BPM**  
_Formatstring:_ **$if($eql(%BPM%,'0'),,%BPM%)**

 

Ende Aktionengruppe **BPM.Runden.NK0** (4 Aktionen)

**Runden auf eine Stelle nach dem Komma**

123.01 ==\> 123.0  
123.44 ==\> 123.4  
123.45 ==\> 123.5  
123.99 ==\> 124.0

Anfang Aktionengruppe **BPM.Runden.NK1** 

Aktion #1  
_Aktionstyp 5:_ **Tagfeld formatieren**  
_Feld \_\_\_\_\_\_\_:_ **BPM**  
_Formatstring:_ **$replace(%BPM\_MIXMEISTER%,'.',)**

 

Aktion #2  
_Aktionstyp 5:_ **Tagfeld formatieren**  
_Feld \_\_\_\_\_\_\_:_ **BPM**  
_Formatstring:_ **$ifgreater($mod(%BPM%,10),4,$add($div(%BPM%,10),1),$div(%BPM%,10))**

 

Aktion #3  
_Aktionstyp 5:_ **Tagfeld formatieren**  
_Feld \_\_\_\_\_\_\_:_ **BPM**  
_Formatstring:_ **$div(%BPM%,10)'.'$mod(%BPM%,10)**

 

Aktion #4  
_Aktionstyp 5:_ **Tagfeld formatieren**  
_Feld \_\_\_\_\_\_\_:_ **BPM**  
_Formatstring:_ **$if($eql(%BPM%,'0.0'),,%BPM%)**

 

Ende Aktionengruppe **BPM.Runden.NK1** (4 Aktionen)

DD.20111129.1348.CET  
Edit.20120717.1525.CEST

---

_[View the full topic](https://community.mp3tag.de/t/bpm-erst-runden-dann-ganzzahlig-ausgeben/6066)._
