base36 Questions

3

Solved

I am currently writing a piece of JavaScript that uses base 36 encoding. I came across this problem: parseInt("welcomeback",36).toString(36) Appears to return "welcomebacg". I ...
Zipporah asked 1/8, 2020 at 0:6

4

I am trying to convert some code to the C# (from the JavaScript), I need to convert a double number(0.04036483168558814) to ".toString(36)/Base36" by C#. JavaScript code here: var num = 0.04036...
Phototelegraphy asked 16/11, 2015 at 6:9

2

Solved

Currently I am working at an algorithm to encode a normal string with each possible character to a Base36 string. I have tried the following but it doesn't work. public static String encode(Strin...
Unanimous asked 13/1, 2017 at 11:39

9

Solved

I'm interested in creating tiny url like links. My idea was to simply store an incrementing identifier for every long url posted and then convert this id to it's base 36 variant, like the following...
Elburr asked 6/8, 2010 at 21:36

3

Solved

strtoi(x,base=36) will convert a base36-encoded string to an integer: strtoi("zzzz",base=36) [1] 1679615 Is there a function that inverts this operation, i.e., given a positive integer yields th...
Archi asked 16/3, 2016 at 12:57

2

Solved

I'm a bit lost. For a project, I need to convert the output of a hash-function (SHA256) - which is a byte array - to a String using base 36. So In the end, I want to convert the (Hex-String repre...
Arbitrary asked 18/6, 2015 at 12:16

5

Solved

How can I convert a Long to base36 ? Along with your answer can explain how you came to the answer? I've checked the scaladocs for Long for converting to a different base, and on converting a Long...
Positronium asked 19/2, 2013 at 4:13

2

Solved

A situation has arisen where I need to perform a base 36 to base 10 conversion, in the context of a SQL statement. There doesn't appear to be anything built into Oracle 9, or Oracle 10 to address t...
Afroasian asked 2/4, 2010 at 19:17

4

I have a number of 20 digit, which datatype will support to store this number? I have tried long, double but I 'm getting out of range. Number = 48565664968483514466 Then I have to convert this ...
Algetic asked 15/9, 2014 at 15:38

1

Solved

I have noticed some inconsistencies between Python and JavaScript when converting a string to base36. Python Method: >>> print int('abcdefghijr', 36) Result: 37713647386641447 Javasc...
Hyacinthie asked 17/10, 2012 at 13:50

2

Solved

I want to convert numbers in base 36 using PHP. The function base_convert is not working because I want to convert large numbers: I don't get my initial number if I convert it again from base 36 to...
Chairborne asked 6/5, 2012 at 16:2

1

Solved

I currently do a lot of conversions from int into a base36 string (70%~ of programs time). Are there any obvious optimisations to this code? public static final String alphabet = "0123456789abcdef...
Ashcraft asked 4/4, 2012 at 9:54

1

have an interesting problem - I need to convert 2 (randomly) generated Guids into a string. Here are the constraints: string max 50 charactes length. only numbers and small letters can be used (0...
Leanoraleant asked 17/3, 2012 at 0:43

2

Solved

I would like to be able to take an arbitrary string, run it through a hashing function (like MD5), and then interpret the resulting digest in base-36. I know there already exists a Digest library ...
Flagpole asked 23/3, 2011 at 23:29

2

Solved

I want to use base36 in a web application I am developing... but as the id is visible to users as a url, I want to filter out profanity. Has anyone solved this? Or is this even a real problem? Doe...
Redhot asked 17/2, 2011 at 17:23

3

Solved

I have a list of folders that are organised by base36 (0-9 then a-z). Now my current implementation for reading them is to iterate over a number, convert it to base32, check if the folder exists. I...
Chrisom asked 19/10, 2010 at 20:26
1

© 2022 - 2024 — McMap. All rights reserved.