Can you help me

augeofermini

Member
Jun 8, 2022
25
67
13
Please can you helping me on the script for this website to show full BTC decimals and not only 2 decimals please.

FD7F7BD7-33D9-48F8-B505-DD200C39FA0C.png

it only shows 2 instead of full decimals like here:
2119101E-F542-498C-A609-F54539036C97.png
 

jackdanielz

New member
May 5, 2022
24
11
3
Code:
<?php
$btc = 0.00023500;
echo number_format($btc, 8, '.', ',');
echo intval(($btc*100000000))/100000000;
echo floor(($btc*100000000))/100000000;
?>

1. number_format = output: 0.00023500
The 8 are the decimal places, the dot is the "decimal separator" and the comma is the "thousands separator".

2. intval = output: 0.000235
8 decimal places are output, unless the value is zero, then only the actual decimal places are given.

3. floor = output: 0.000235
8 decimal places are output, unless the value is zero, then only the actual decimal places are given.

* There are more spellings. But these are easy to derive from the understanding.
 

augeofermini

Member
Jun 8, 2022
25
67
13
Code:
<?php
$btc = 0.00023500;
echo number_format($btc, 8, '.', ',');
echo intval(($btc*100000000))/100000000;
echo floor(($btc*100000000))/100000000;
?>

1. number_format = output: 0.00023500
The 8 are the decimal places, the dot is the "decimal separator" and the comma is the "thousands separator".

2. intval = output: 0.000235
8 decimal places are output, unless the value is zero, then only the actual decimal places are given.

3. floor = output: 0.000235
8 decimal places are output, unless the value is zero, then only the actual decimal places are given.

* There are more spellings. But these are easy to derive from the understanding.
Can i share you the website script do you can set it for me? 🥺
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu