Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Explains safe JavaScript number handling for browser UI: coercion, precision, NaN, modulo wrapping, rounding, randomness, and BigInt limits.
82% 86%+5 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 18 of 22 without it.
3 of 3 safety checks passed
Not used yet
Use this skill for numeric browser behavior that needs predictable edge-case handling. It helps avoid common JavaScript traps around coercion, precision, modulo behavior, rounding, randomization, and BigInt.
guidelines.md to select the smallest relevant file set.references/ui-numbers/rules.md for implementation decisions.references/ui-numbers/examples.md when editing code.workflows/debug-ui-number-logic.md for multi-step derivation or debugging.| Resource | Purpose |
|---|---|
guidelines.md | Routes tasks to the right reference files |
references/source-map.md | Book source and chapter/section traceability |
references/ui-numbers/knowledge.md | Core concepts and terminology |
references/ui-numbers/rules.md | Practical rules, guidelines, and exceptions |
references/ui-numbers/examples.md | Bad/good examples and refactoring approach |
references/ui-numbers/patterns.md | Reusable formula and implementation patterns |
references/ui-numbers/checklist.md | Review checklist and red flags |
workflows/debug-ui-number-logic.md | Step-by-step workflow |
Derived from Math for Web Design by Paul McFedries, Chapter 2: Math basics for JavaScript.
Citations are tracked in references/source-map.md.
Next to this one in the catalogue, plus more from the same author.