MCPcopy Index your code
hub / github.com/simstudioai/sim / pctToDecimal

Function pctToDecimal

apps/sim/lib/pptx-renderer/parser/units.ts:28–30  ·  view source on GitHub ↗
(pct: number)

Source from the content-addressed store, hash-verified

26
27/** OOXML percentage (100000ths) to a decimal fraction (0..1 range for 0%..100%). */
28export function pctToDecimal(pct: number): number {
29 return pct / 100000
30}
31
32/** Hundredths of a point to points (used for font sizes in OOXML). */
33export function hundredthPtToPt(val: number): number {

Callers 4

resolveGradientForTextFunction · 0.90
resolveGradientFunction · 0.90
resolveGradientFillNodeFunction · 0.90
resolveGradientStrokeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected