PHP code example of s-patompong / nano-converter-php
1. Go to this page and download the library: Download s-patompong/nano-converter-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
s-patompong / nano-converter-php example snippets
$nano = new \SPatompong\NanoConverter\NANO("45.225513");
echo $nano->toRaw();
// Output: "45225513000000000000000000000000"
$raw = new \SPatompong\NanoConverter\Raw("7126405971523");
echo $raw->toNANO();
// Output: "0.000000000000000007126405971523"