✅ – ✅ – blackhorseh – 17-53 Jul 21

Hey, guys, How to convert number 9700 to 9.7k ? I know can convert it manually by dividing with 1000 and manipulate string to add k, But Is there any javascript method to do easily? For example, 9700.toLocalString() = 9,700
C
Cluster271d ago
oh, found it myself. toLocaleString('en-US', { notation: 'compact' })} notation give me what I need. 🙂
UU
Unknown User271d ago
L
lebouwski271d ago
UU
Unknown User270d ago