• 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

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

PHP: PDO + CSV export not downloading (headers issue?)

What is my SQL missing?

Display a success custom notice after Placing an Order in WooCommerce

WHM Enabling mod_rewrite

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

Display a product custom field only in WooCommerce Admin single orders

Dynamic table in HTML using MySQL and php

image source not readable

Docker image build with PHP zip extension shows "bundled libzip is deprecated" warning

how to see if database exists with PDO [duplicate]

how to retrieve the first and last instance of a row in pdo dataset

mysql_result is defined but mysql_free_result warns it expected a resource

Display Link Title Instead of URL in XSL

Laravel no logout option from menu after successfull login

About Contact Privacy policy Terms and conditions