Google Sheets
Number Format
[<999950]$0.0,"K";[<999950000]$0.0,,"M";$0.0,,,"B"