Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
6
export
function
pInt(s: string | number, radix = 10): number {
7
return
parseInt(s, radix)
8
}
9
10
/**
11
* 包装原生 toFixed,确保输出数字而不是字符串
Callers
3
str-num.spec.ts
File · 0.90
optionsNormalize
Method · 0.90
getNumberValueOfStyle
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected