• 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

PHP mail sending empty mails

Laravel database insert with combining array and string

How to give apache permission to write to home directory?

browsersync doesn't work with XAMPP

oauth-private.key does not exist or is not readable

Insert multidimensional array to codeigniter cart

Facebook SDK error: Cross-site request forgery validation failed. Required param "state" missing from persistent data

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

Group rows by column and sum another column within groups [duplicate]

Hi, I am making a contact form thingy, and my php isn't working any reason why?

Pass an image through AJAX [duplicate]

With doctrine ODM, can I embed many subdocuments in a main document?

Symfony run hint kernel.secret parameter not found

Distribute array row data to make multiple new rows

Batch request Google Calendar php API

About Contact Privacy policy Terms and conditions