wip
This commit is contained in:
@@ -4,6 +4,6 @@
|
||||
* @param [x=16] 推荐使用偶数
|
||||
* @returns 最近的 x 的倍数
|
||||
*/
|
||||
export function nearestMultiple(n: number, x: number = 32): number {
|
||||
export function nearestMultiple(n: number, x: number = 18): number {
|
||||
return Math.floor((n + x/2) / x) * x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user