Support the ongoing development of Laravel.io →
posted 9 years ago
Views
Last updated 2 years ago.
0

Use number_format() Like This

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

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

http://php.net/manual/en/language.types.integer.php

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Medow medow Joined 25 Sep 2015

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.