Download the PHP package choval/base_convert without Composer
On this page you can find all versions of the php package choval/base_convert. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download choval/base_convert
More information about choval/base_convert
Files in choval/base_convert
Download choval/base_convert
More information about choval/base_convert
Files in choval/base_convert
Vendor choval
Package base_convert
Short Description A base convert functino for converting extra large numbers from one base to another
License MIT
Package base_convert
Short Description A base convert functino for converting extra large numbers from one base to another
License MIT
Please rate this library. Is it a good library?
Informations about the package base_convert
Choval/base_convert
A base_convert
replacement that doesn't lose precision on large numbers.
A few differences from this convert:
- Second and third parameters (bases) accept:
- an int between 2 and 64 (0-9a-zA-Z-_)
- a string of unique characters
- an array of unique characters
- A fourth parameter allows passing a padding length for the output
- A fifth parameter can be passed to be used as the padding character, else the first char of the base is used.
Negative numbers are converted to positive, just like base_convert
.
Install
This function uses the GMP or the BCMath extension. Install one of them.
Uses GMP > BCMath > PHP. If vanilla PHP, a E_USER_WARNING
is triggered.
To Install this library:
Usage
Procedural:
Object:
Padding:
Keep in mind the type of the parameters, '10'
and 10
are not the same.
License
MIT, see LICENSE
All versions of base_convert with dependencies
PHP Build Version
Package Version
No informations.
The package choval/base_convert contains the following files
Loading the files please wait ....