Tobase (Function) — Skript
Addon: Skript · Category: Function
Syntax
toBase(n: objects, base: long) :: stringsDescription
Turns a number in a string using a specific base (decimal, hexadecimal, octal). For example, converting 32 to hexadecimal (base 16) would be 'toBase(32, 16)', which would return "20". You can use any base between 2 and 36.
Examples
send "Decode this binary number for a prize! %toBase({_guess}, 2)%"