WordPress at a glance
function is not described

getid3_lib::trunc() public WP 1.0

Truncates a floating-point number at the decimal point.

{} It's a method of the class: getid3_lib{}

No Hooks.

Return

float|Int. returns int (if possible, otherwise float)

Usage

$result = getid3_lib::trunc( $floatnumber );
$floatnumber(float) (required)
-

Code of getid3_lib::trunc() WP 5.7.2

<?php
public static function trunc($floatnumber) {
	if ($floatnumber >= 1) {
		$truncatednumber = floor($floatnumber);
	} elseif ($floatnumber <= -1) {
		$truncatednumber = ceil($floatnumber);
	} else {
		$truncatednumber = 0;
	}
	if (self::intValueSupported($truncatednumber)) {
		$truncatednumber = (int) $truncatednumber;
	}
	return $truncatednumber;
}