• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Can you help me

augeofermini

Member
Jun 8, 2022
26
69
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
 
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.
 
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? 🥺
 

Forum statistics

Threads
78,868
Messages
1,128,079
Members
246,591
Latest member
dermanluther
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock