Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sonofmagic/weapp-tailwindcss
/ round
Function
round
packages-runtime/typography/src/styles.js:14–16 ·
view source on GitHub ↗
(num)
Source
from the content-addressed store, hash-verified
12
}
13
14
function
round(num) {
15
return
trimTrailingZeros(num.toFixed(7))
16
}
17
const
rem = px => `${round(px / 16)}rem`
18
const
em = (px, base) => `${round(px / base)}em`
19
const
HEX_CHAR_DOUBLE_RE = /./g
Callers
4
rem
Function · 0.70
em
Function · 0.70
styles.js
File · 0.70
detect_sun_code_shape
Function · 0.50
Calls
1
trimTrailingZeros
Function · 0.85
Tested by
no test coverage detected