UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

34 lines 1.52 kB
/*** * d888b d88888b d888888b .d8888. d888888b d88888D d88888b db .d8b. d8888b. d88888b db * 88' Y8b 88' `~~88~~' 88' YP `88' YP d8' 88' 88 d8' `8b 88 `8D 88' 88 * 88 88ooooo 88 `8bo. 88 d8' 88ooooo 88 88ooo88 88oooY' 88ooooo 88 * 88 ooo 88~~~~~ 88 `Y8b. 88 d8' 88~~~~~ 88 88~~~88 88~~~b. 88~~~~~ 88 * 88. ~8~ 88. 88 db 8D .88. d8' db 88. 88booo. 88 88 88 8D 88. 88booo. * Y888P Y88888P YP `8888Y' Y888888P d88888P Y88888P Y88888P YP YP Y8888P' Y88888P Y88888P * * import { getSizeLabel } from '@mikezimm/npmfunctions/dist/Services/Strings/stringServices'; */ /** * NOTE: If you pass a string, it will first parseInt it so BE SURE TO VERIFY you are not passing in * something like 1.24MB or it will return as 1.24B * * @param size * @param decimal * @returns */ export declare function getSizeLabel(size: number, decimal?: number): string; /** * Converts a number into a label, used in eXTreme Storage to show 1.6M and 2.3G sizes * @param size * @param decimal * @returns */ export declare function getCountLabel(count: number, decimal?: number): string; /** * Returns string with 1000's separated format. * For US: 1,000,000 * For EU: 1.000.000 * @param numb */ export declare function getCommaSepLabel(numb: number): string; //# sourceMappingURL=labels.d.ts.map