Module: math

Methods


<static> gcd(a, b)

최대 공약수(greatest common divisor) 반환

Parameters:
Name Type Description
a Number
b Number
Source:
Returns:
Type
Number

<static> lcm(a, b)

최소 공배수(least common multiple) 반환

Parameters:
Name Type Description
a Number
b Number
Source:
Returns:
Type
Number

<static> sizePercentRatio(width, height)

width : height 로 css padding-top 비율(%) 반환
css padding에 의한 비율 계산이 필요할 경우 사용

Parameters:
Name Type Description
width Number
height Number
Source:
Returns:
Type
IRatio

<static> sizeRatio(width, height)

width : height 비율 반환

Parameters:
Name Type Description
width Number
height Number
Source:
Returns:
Type
IRatio