• 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

How to submit a form when page loads using JavaScript?

How to increase the PHP upload limits [duplicate]

google content api for shopping

(Laravel) How to delete multiple models including optional relationships?

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

Laravel - How to properly generate unique slugs from article titles?

Convert PHP array into HTML tag attributes separated by spaces

Installing Composer - Internal Error

get data-value with variable value

Is there an equivalent of DynamoDB on Azure as a PHP session Handler

Printing more than one array using print_r or any other function in php

merge all files in directory to one text file

could not find driver Debian SQL Server PHP

How to give apache permission to write to home directory?

Batch request Google Calendar php API

About Contact Privacy policy Terms and conditions