Hi, i am new on laravel, i want to convert number value from 1000 to 1k,
i have seached documantation of laravel but i couldnt find.. is there any function for that?
@snapey That's awesome! I had three different replies written that included pointing out the 1000 vs. 1024 "thing". In an effort to not start a religious war, I opted to not point that out...... I only start religious wars on even numbered days.
It's worth thinking about though. There are legit times when 1000 is appropriate, and legit times when 1024 is appropriate.
@goatshark I'd write a helper class to do general conversion, unless all you need is the 1000 converted. Laravel / Taylor assumes the developer will write their own helper classes.
I mean i have database value $number and if it is more than 1000 i want to display in blade file like 1k,
if it is 2500 want to display 2k etc... any example for this?