-
Notifications
You must be signed in to change notification settings - Fork 0
guards.Function.decimalAdjust
github-actions[bot] edited this page Jun 8, 2026
·
2 revisions
@zenstone/ts-utils / guards / decimalAdjust
decimalAdjust(
type,value,exp?):number
Defined in: src/guards/index.ts:120
数字精度调整,支持 round、ceil、floor 三种类型
"round" | "ceil" | "floor"
调整类型
number
number
指数(10的 exp 次方 —— 10 进制位数,0 表示个位,1 表示十位,-1 表示小数点后一位,-2 表示小数点后两位,以此类推)。
number