• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

how to prevent float variables displaying as scientific notation when printing [duplicate]

phpfloating-pointtype-conversionprecision


PHP Snippet 1:

$var = number_format((float)-0.00000025478625, 14);
print($var);

PHP Snippet 2:

0.00000000000000000000000040000000000000001539794790

Related Snippets

Laravel Factory not calling callback 'afterCreating'

PHP Fatal error: Class not found - PHPUnit

PHP, how to convert Int value to Week days

php mysql + create a friend request system

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

PHP cURL (SSL certificate problem: self signed certificate in certificate chain)

Undefined variable in Laravel 8 project (php 7.4)

Composer Warning: openssl extension is missing. How to enable in WAMP

Laravel 8: Array to string conversion while calling route:list

CodeIgniter 3 is generating a session file on each request, why?

Laravel whole batch is cancelled if one Job fails

loop through an anchor id

Get image type from base64 encoded src string

Too few arguments to function PendingResourceRegistration::name(),1 passed in C:xampphtdocsproject outesweb.php on line 18 and exactly 2 expected

how to fix Service provider class not found when using repository?

About Contact Privacy policy Terms and conditions