PHP 클래스 WPDKMath

저자: =undo= ([email protected])
상속: extends WPDKObject
파일 보기 프로젝트 열기: wpxtreme/wpdk 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$__version string Override version

공개 메소드들

메소드 설명
bytes ( integer $value, integer $precision = 2 ) : string Return the string value (byte) well formatted.
isInfinity ( float | string $value ) : boolean Return TRUE if $value is equal to INF (php) or WPDKMath::INFINITY
isPercentage ( string $value ) : boolean Return true if the string $value in input params over with %
number ( string $value ) : integer | float Remove all alfa-char from a string and return number only.
rModulus ( number $a, number $n ) : integer Mimic the math function modules like Ruby, Python & TLC

메소드 상세

bytes() 공개 정적인 메소드

Return the string value (byte) well formatted.
부터: 1.6.1
public static bytes ( integer $value, integer $precision = 2 ) : string
$value integer The bytes value.
$precision integer Optional. Precision after comma.
리턴 string

isInfinity() 공개 정적인 메소드

Return TRUE if $value is equal to INF (php) or WPDKMath::INFINITY
부터: 1.2.0
public static isInfinity ( float | string $value ) : boolean
$value float | string Value to check.
리턴 boolean

isPercentage() 공개 정적인 메소드

Return true if the string $value in input params over with %
public static isPercentage ( string $value ) : boolean
$value string String value to check
리턴 boolean

number() 공개 정적인 메소드

Remove all alfa-char from a string and return number only.
public static number ( string $value ) : integer | float
$value string Any string with number inside.
리턴 integer | float

rModulus() 공개 정적인 메소드

Mimic the math function modules like Ruby, Python & TLC
저자: =stid= ([email protected])
public static rModulus ( number $a, number $n ) : integer
$a number Number a
$n number Module b of a
리턴 integer

프로퍼티 상세

$__version 공개적으로 프로퍼티

Override version
public string $__version
리턴 string