• 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

Check If array is null or not in php

500 Internal Server Error on Ajax request. Not sure the origin of the problem

Lumen - Postgresql setup - Composer

Doctrine 2 mapping referencing unique key

Laravel dosen't connect with Oracle

How to validate Envato Purchase Code in PHP

XAMPP/SQLSRV: Unable to find Sqlsrv in PHPINFO(); - errors coming from connection

str_replace or preg_replace random number from string

How to get values inside <![CDATA[values]] > using php DOM?

How to execute sql code based on fetch array

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

Doctrine ORM: Excluding Records Based on Values of Nested Relationships

PHP mail function is sending blank message body

phpunit - mockbuilder - set mock object internal property

PHP: Telegram Bot: Insert line break to text message

About Contact Privacy policy Terms and conditions