XBRL-Instance.php
function getNumericPresentation( &$entry )
	{
		if ( isset( $entry['precision'] ) && strval( $entry['precision'] ) === '0' )
		{
			return NAN;
		}

		// Using PHP_ROUND_HALF_EVEN see XBRL 2.1 section 4.6.7.2
		$decimals = $this->getDecimals( $entry );
		return $decimals == INF
			? $entry['value']
			: round( $entry['value'], $this->getDecimals( $entry ), PHP_ROUND_HALF_EVEN );
	}
function getNumericPresentation( &$entry )
	{
		if ( isset( $entry['precision'] ) && strval( $entry['precision'] ) === '0' )
		{
			return NAN;
		}

		// Using PHP_ROUND_HALF_EVEN see XBRL 2.1 section 4.6.7.2
		$decimals = $this->getDecimals( $entry );
		return $decimals == INF
			? $entry['value']
			: round( $entry['value'], $this->getDecimals( $entry ), PHP_ROUND_HALF_EVEN );
	}
function getNumericPresentation ( & $ entry ) { if ( isset ( $ entry [ 'precision' ] ) && strval ( $ entry [ 'precision' ] ) === '0' ) { return NAN ; } // Using PHP_ROUND_HALF_EVEN see XBRL 2.1 section 4.6.7.2
 $ decimals = $ this -> getDecimals ( $ entry ) ; return $ decimals == INF ? $ entry [ 'value' ] : round ( $ entry [ 'value' ] , $ this -> getDecimals ( $ entry ) , PHP_ROUND_HALF_EVEN ) ; }
Generate a presentation of a fact value taking into account decimals and precision settings

@param array $entry (by reference) The fact entry containing the value
@return string
Generate a presentation of a fact value taking into account decimals and precision settings