radix Questions
9
Solved
Is there any fast way to find the largest power of 10 smaller than a given number?
I'm using this algorithm, at the moment, but something inside myself dies anytime I see it:
10**( int( math.log1...
Wistful asked 22/12, 2010 at 21:4
4
Solved
The following question arose because I was trying to use bytes strings as dictionary keys and bytes values that I understood to be equal weren't being treated as equal.
Why doesn't the following Py...
Victor asked 19/7, 2014 at 16:54
13
Solved
I have an array of Strings that represent Binary numbers (without leading zeroes) that I want to convert to their corresponding base 10 numbers. Consider:
binary 1011 becomes integer 11
binary 100...
2
Solved
I have a shadcn popover and its content is several buttons. I want to close a popover once button is clicked. How can I do that?
https://ui.shadcn.com/docs/components/popover
36
Solved
Python allows easy creation of an integer from a string of a given base via
int(str, base).
I want to perform the inverse: creation of a string from an integer,
i.e. I want some function int2...
12
Solved
I ran JSLint on this JavaScript code and it said:
Problem at line 32 character 30: Missing radix parameter.
This is the code in question:
imageIndex = parseInt(id.substring(id.length - 1))-1...
Ryannryazan asked 19/10, 2011 at 9:4
3
I am fairly new to Radix UI (with Shadcn/ui) and styling components for that matter. Couldn't figure out a solution for adapting a JSX component to Radix UI:
I am using Radix UI Radio Groups & ...
Blindage asked 26/6, 2023 at 20:55
4
Solved
I'm working with numbers in different bases (base-10, base-8, base-16, etc). I'm trying to count the number of characters in each number.
Example
Number: ABCDEF
Number of digits: 6
I know about t...
10
Solved
Thus for used base class for some commom reusable methods in every page of my application...
public class BaseClass:System.Web.UI.Page
{
public string GetRandomPasswordUsingGUID(int length)
{
s...
5
I want to set a page's base href attribute in Javascript based off of the current hostname. I have generated HTML pages that can be viewed on different hostnames, which means generating a base href...
Margalit asked 16/8, 2010 at 16:0
4
Solved
Currently I'm using the following code to return a number as a binary (base 2), octal (base 8), or hexadecimal (base 16) string.
fn convert(inp: u32, out: u32, numb: &String) -> Result<St...
2
Solved
I am confused about the differences between redefining and overriding functions in derived classes.
I know that - In C++, redefined functions are statically bound and overridden functions are dyn...
Juniejunieta asked 4/11, 2014 at 20:3
5
Solved
OK, I'm stuck on something seemingly simple. I am trying to convert a number to base 26 (ie. 3 = C, 27 = AA, ect.). I am guessing my problem has to do with not having a 0 in the model? Not sure. Bu...
4
Solved
I know it is one of the constant ask question
so i get this error
'WorldObject': [Base class undefined (translated from german)]
Here is the code which produce this error:
ProjectilObject.h:
#pragm...
3
Solved
Given the letter(s) of an Excel column header I need to output the column number.
It goes A-Z, then AA-AZ then BA-BZ and so on.
I want to go through it like it's base 26, I just don't know how to i...
5
Solved
I want to write a program to convert from decimal to negabinary.
I cannot figure out how to convert from decimal to negabinary.
I have no idea about how to find the rule and how it works.
Exampl...
Tattletale asked 17/2, 2012 at 15:28
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
5
Solved
I would like to generate a figure that has a combination of base and ggplot graphics. The following code shows my figure using the base plotting functions of R:
t <- c(1:(24*14))
P <- 24
A...
3
Solved
I am trying to deploy to IIS. Not in root but in a sub-folder.
This is working:
edit web/index.html, change <base href="/"> to <base href="/ChangeTag/">
run flutter...
6
Good afternoon,
How would you go about converting to a decimal string a binary string with more characters than bits in a language's largest integer type? In other words, supposing that you have t...
2
Solved
I am aware that strtol(hexstring, NULL, 16) will convert my string hexstring, which is hexadecimal, to a decimal. Likewise this would be the case in binary in strtol(binstring, NULL, 2). Is there a...
Fayalite asked 26/3, 2016 at 16:33
8
Solved
The program requires an input of an arbitrary large unsigned integer which is expressed as one string in base 10. The outputs is another string that expresses the integer in base 16.
For example, ...
9
Solved
How to convert a "big" Hex number (in string format):
EC851A69B8ACD843164E10CFF70CF9E86DC2FEE3CF6F374B43C854E3342A2F1AC3E30C741CC41E679DF6D07CE6FA3A66083EC9B8C8BF3AF05D8BDBB0AA6CB3EF8C5BAA2A5E5...
Persas asked 6/6, 2013 at 15:18
11
Solved
I am trying to implement radix sort for integers, including negative integers. For non-negative ints, I was planning to create a queue of 10 queues correspondingly for the digits 0-9 and implement ...
Endor asked 9/3, 2013 at 3:4
30
Solved
How do you convert decimal values to their hexadecimal equivalent in JavaScript?
Whitsunday asked 11/9, 2008 at 22:26
1 Next >
© 2022 - 2025 — McMap. All rights reserved.