LLMS_Number::whole_number( [decimal] $decimal )

Converts and rounds a decimal to a whole number


Description Description


Parameters Parameters

$decimal

([decimal]) (Required) [percentage]


Top ↑

Return Return

([int]) [whole number representation of decimal value]


Top ↑

Source Source

File: includes/class.llms.number.php

	public static function whole_number( $decimal ) {

			return round( $decimal * 100 );

	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.