Getting Started
Introduction
Development
Getting Started
Local Portless Workspace
Agent Skills
Release Workflow
Hooks
Overview
Browser
useCopyToClipboard
Effects
useKeyBinding
State
useToggle
Ui
Overview
Components
Avatar
Button
Card
Chart
DropdownMenu
Kbd
Popover
Select
Separator
Skeleton
Slider
Table
Tooltip
Typography
Data Display
DataGrid
Feedback
Command
Dialog
Forms
Checkbox
Field
Input
Label
RadioGroup
Utils
Overview
Datetime
formatTimestamp
Number
formatCents
String
toCamelCase
toSlug
toTitleCase
Validators
isEmpty
  1. Home
  2. Utils
  3. Number

Number Utils

Browse 1 page in the number category.

formatCents

Formats an integer cent value as a locale-formatted number string. Returns a plain number string (e.g. `"12.50"`). Currency symbol rendering is intentionally left to the caller so this function remains framework-agnostic and testable in isolation.

On This Page
  • Number Pages