Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Base Conversion
eniallator
Aug 29th, 2016
274
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Lua
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
local
function
convert
(
num
,
base
)
local
outTbl
=
{
}
while
num
>
0
do
table.insert
(
outTbl
,
num
%
base
)
num
=
math.floor
(
num
/
base
)
end
return
outTbl
end
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
5 min ago | 13.08 KB
Matthew Quote
27 min ago | 0.18 KB
Input_AOC
4 hours ago | 18.01 KB
Untitled
18 hours ago | 13.15 KB
Analog GPUs: THE FUTURE
23 hours ago | 8.88 KB
Quotes I believe to be true.
23 hours ago | 0.16 KB
Die 7 wichtigsten Aktionen diese Woche
1 day ago | 4.17 KB
Untitled
1 day ago | 13.34 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!