MCPcopy Create free account
hub / github.com/Barrior/JParticles / pInt

Function pInt

src/utils/str-num.ts:6–8  ·  view source on GitHub ↗
(s: string | number, radix = 10)

Source from the content-addressed store, hash-verified

4 * 包装原生 parseInt,确保输出十进制数值
5 */
6export function pInt(s: string | number, radix = 10): number {
7 return parseInt(s, radix)
8}
9
10/**
11 * 包装原生 toFixed,确保输出数字而不是字符串

Callers 3

str-num.spec.tsFile · 0.90
optionsNormalizeMethod · 0.90
getNumberValueOfStyleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected