How to truncate (or ideally round) TBPM value?

Also look there for the last challenge finding out the correct rounding formula:
BPM erst runden, dann ganzzahlig ausgeben

DD.20080516.1154.CEST