dev-master
9999999-devA simple helper for converting units of Nano cryptocurrency
MIT
The Development Requires
by Jeff Kilroy
1.0
1.0.0.0A simple helper for converting units of Nano cryptocurrency
MIT
The Development Requires
by Jeff Kilroy
Wallogit.com
2017 © Pedro Peláez
A simple helper for converting units of Nano cryptocurrency
A simple helper for converting units of Nano cryptocurrency, (*1)
composer require binarycabin/nano-units
\NanoUnits::convert($unitFrom,$unitTo,$value)
for example, (*2)
\NanoUnits::convert('Mnano','knano',99)
// Returns "99000"
The package makes a NanoUnits facade, so you can simply do, (*3)
\NanoUnits::convert($unitFrom,$unitTo,$value)
Note, the NANO ticker value is represented by "Mnano", which can sometimes cause confusion with the "nano" unit. You can use the "ticker" unit as an alias for "Mnano" to help make it easier for debugging, (*4)
A simple helper for converting units of Nano cryptocurrency
MIT
A simple helper for converting units of Nano cryptocurrency
MIT