• 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

Magento 2 - Controller returning blank page

PHP Include for HTML?

Laravel Delete and Update

Combine multiple columns into an array as one of the key in a results set

Yii2: How to download backup files using spanjeta/yii2-backup?

calling server using nusoap with complextype

Correctly determine if date string is a valid date in that format

Adding Multiple Custom Post Types in Wordpress

Woocommerce Checkout - Add conditional field required if one field is filled

Having issue with matching rows in the database using PDO

How To Access A Column In M-M Relationship Table In Laravel

Array to string conversion

How to install php yaml on CentOs?

is there any way to validate a field that sometime is File(image) && sometime is String(Src of same image)

How to update array value in Laravel

About Contact Privacy policy Terms and conditions