formatEstimatedCount() — supabase Function Reference
Architecture documentation for the formatEstimatedCount() function in Pagination.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD b76cb636_83ff_c578_eedc_e0814bacbc7c["formatEstimatedCount()"] 5a9eefc0_f917_352f_fd90_15900c850758["Pagination()"] 5a9eefc0_f917_352f_fd90_15900c850758 -->|calls| b76cb636_83ff_c578_eedc_e0814bacbc7c style b76cb636_83ff_c578_eedc_e0814bacbc7c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/grid/components/footer/pagination/Pagination.utils.ts lines 1–13
export const formatEstimatedCount = (value: number) => {
const sizes = ['', 'K', 'M', 'B', 'T']
if (value === 0) return '0'
const k = 1000
const i = Math.floor(Math.log(value) / Math.log(k))
const unit = i > 4 ? 'T' : sizes[i]
const formattedValue = value / Math.pow(k, i > 4 ? 4 : i)
return unit === '' ? `${formattedValue}` : `${formattedValue.toFixed(1)}${unit}`
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does formatEstimatedCount() do?
formatEstimatedCount() is a function in the supabase codebase.
What calls formatEstimatedCount()?
formatEstimatedCount() is called by 1 function(s): Pagination.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free