mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-22 00:48:59 +00:00
6 lines
150 B
JavaScript
6 lines
150 B
JavaScript
//flow
|
|
|
|
export function toFixedIfLarger(number: number, fixedSize: number = 6): string {
|
|
return parseFloat(number.toFixed(fixedSize)).toString();
|
|
}
|