shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
toBase
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.number
Convert a number to another base between 1 and the length of the “chars” settings
Params
- number*-Number
The number to convert
- base*-Number
The base to convert to
Return
- -String
The converted number in string format
Example
import { toBase } from '@blackbyte/sugar/number'
toBase(1024, 62); // qFSettings
- chars’abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789’String
The characters set to use for conversion
Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space