src/Utility/Number.php
public static function getDecimalPlaces($number) {
		$decimalPlaces = 0;
		while ($number > 1 && $number != 0) {
			$number /= 10;
			$decimalPlaces -= 1;
		}
		while ($number < 1 && $number != 0) {
			$number *= 10;
			$decimalPlaces += 1;
		}
		return $decimalPlaces;
	}
public static function getDecimalPlaces($number) {
		$decimalPlaces = 0;
		while ($number > 1 && $number != 0) {
			$number /= 10;
			$decimalPlaces -= 1;
		}
		while ($number < 1 && $number != 0) {
			$number *= 10;
			$decimalPlaces += 1;
		}
		return $decimalPlaces;
	}
public static function getDecimalPlaces ( $ number ) { $ decimalPlaces = 0 ; while ( $ number > 1 && $ number != 0 ) { $ number /= 10 ; $ decimalPlaces -= 1 ; } while ( $ number < 1 && $ number != 0 ) { $ number *= 10 ; $ decimalPlaces += 1 ; } return $ decimalPlaces ; }
Get decimal places

@param float $number
@return int decimalPlaces
Get decimal places