• 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

Convert date and time to Jalali in Laravel

MySQL upgrade causing unexpected results on simple WHERE clauses

Display the default discounted price and percentage on Woocommerce products

php echo xml documents with header

How to install PHP composer inside a docker container

Normalize DateInterval in PHP

Laravel Blade checkbox not checked

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

How to retrieve Active Directory group policy maximum password age using LDAP

Symfony 4: how to allow dynamic values for array nodes in bundle configuration?

Creating Combinations of Elements

Assets not referencing to public folder (Laravel)

Dropzone: Submit both form data and dropzone at once

Xdebug in Laravel is not working with VSCode

how to validate form data in codeigniter 4

About Contact Privacy policy Terms and conditions