formatPrice
Stock Screening Platform - Frontend API v0.1.0
Stock Screening Platform - Frontend API / utils/format / formatPrice
Function: formatPrice()
formatPrice(
value):string
Defined in: src/utils/format.ts:39
Format price (stock price) with appropriate decimal places
Parameters
value
Price to format
number | null | undefined
Returns
string
Formatted price string
Example
formatPrice(55000) // "55,000"
formatPrice(1250.5) // "1,250.5"