Search
 
SCRIPT & CODE EXAMPLE
 

PHP

1.0E-6 to decimal in php

<?php
//Use the exemple below to convert Scientific Notation to float/decimal on PHP:

  echo sprintf('%f', floatval('-1.0E-5'));//default 6 decimal places
  echo sprintf('%.8f', floatval('-1.0E-5'));//force 8 decimal places
  echo rtrim(sprintf('%f',floatval(-1.0E-5)),'0');//remove trailing zeros

?>
Comment

PREVIOUS NEXT
Code Example
Php :: laravel model events 
Php :: in_array associative array php 
Php :: laravel vue error 500 
Php :: Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in 
Php :: Delete quotes in php 
Php :: Syntax error or access violation: 1071 La clé est trop longue. Longueur maximale: 1000" 
Php :: laravel eloquent set timestamps values upon seed 
Php :: convert std to array php 
Php :: share wordpress post on whatsapp without plugin 
Php :: return two variables php 
Php :: php date diff in days 
Php :: laravel vue 
Php :: drupal 8 user_load 
Php :: calculate percentage of amount in php 
Php :: laravel make model along with its controller and migration file 
Php :: php ?? 
Php :: laravel activity log 
Php :: wp reserved image size names 
Php :: Generate Unique Random String With Any Character Size | unique random php generator | php unique id generator 
Php :: php write to standard out 
Php :: wordpress display menu by name 
Php :: laravel collection average 
Php :: enqueue css 
Php :: get last element of array php 
Php :: composer create new laravel project 
Php :: php mail in localhost wamp 
Php :: php octal to decimal 
Php :: using php to add numbers in html form 
Php :: jquery code to trigger php function 
Php :: php indexof 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =