Support the ongoing development of →
posted 8 years ago
Last updated 2 years ago.

Use number_format() Like This

<!-- With Comma -->
<!-- 3,985,679,200,757,221  -->
{{number_format($metaMyNumbers, 0, '.', '')}}
<!-- Without Comma -->
<!-- 3985679200757221  -->

To add onto that, this is not a Laravel thing. This is a PHP thing. Take a look at Example #2 (Integer Overflow):

If PHP encounters a number beyond the bounds of the integer type, it will be interpreted as a float instead. Also, an operation which results in a number beyond the bounds of the integer type will return a float instead.


Sign in to participate in this thread!


Your banner here too?

Medow medow Joined 25 Sep 2015


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.