• 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

What will the best solution for this multiple optional filter?

Magento 2 - How to add new block to admin panel in product page?

GuzzleHttp Hangs When Using Localhost

Woocommerce Checkout - Add conditional field required if one field is filled

php echo xml documents with header

Redis Command To Sort Keys

laravel controller function parameters

laravel sanctum Route [login] not defined

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

protect images from being copied

How to add class name to an existing tag in php

Could not decode a text frame as UTF-8.

How can I make good efficent AJAX live forms with just jQuery and

Call to a member function fetch_field() on a non-object MySQLiDB

Navigation idle on content download

About Contact Privacy policy Terms and conditions