zero Questions
18
Solved
Suggest solution for removing or truncating leading zeros from number(any string) by javascript,jquery.
Manos asked 26/11, 2011 at 5:15
6
Solved
Is it really not possible to declare a 0-length array in VBA? If I try this:
Dim lStringArr(-1) As String
I get a compile error saying range has no values. If I try to trick the compiler and red...
10
Solved
I know you can't rely on equality between double or decimal type values normally, but I'm wondering if 0 is a special case.
While I can understand imprecisions between 0.00000000000001 and 0.00000...
Determination asked 27/1, 2009 at 20:50
5
Solved
1
My visual's x-axis is Date, aggregated by month, and the y-axis is total sales (sum of costs). For some months, I had no sales, but Quicksight ignores these and only shows me the months that do hav...
Shaky asked 8/8, 2019 at 18:27
3
Solved
I am taking a beginner Python class and the instructor has asked us to countdown to zero without using recursion. I am trying to use a for loop and range to do so, but he says we must include the z...
4
Solved
Below is a section of code which is part of a functional decryption and encryption program.
while checkvar < maxvar: # is set to < as maxvar is 1 to high for the index of var
#output.append(...
3
Solved
As part of my Bachelor-Thesis, I'm trying to implement a corner detector with the Harris and Stephens algorithm:
A combined Corner and Edge Detector
I do calculate:
The x- and y- deviations with...
Alkyne asked 25/2, 2013 at 19:50
7
Solved
I encountered negative zero in output from python; it's created for example as follows:
k = 0.0
print(-k)
The output will be -0.0.
However, when I compare the -k to 0.0 for equality, it yields ...
Dacoity asked 3/11, 2010 at 0:57
12
Solved
I've seen this notation used a lot, and I was wondering, is there is any notable difference between these two notations?
element#id
{
property: 0;
}
and
element#id
{
property: 0px;
}
I use ...
Bithia asked 30/11, 2010 at 20:49
7
Solved
10
Solved
How can I ignore ZeroDivisionError and make n / 0 == 0?
7
Solved
Our intranet web pages need to clearly disambiguate between the letter O and the number ZERO. Is there a screen+printer font that is installed on WindowsXP and Vista that does this either putting a...
Tula asked 23/8, 2010 at 16:10
13
Solved
I have a problem to solve how to remove rows with a Zero value in R. In others hand, I can use na.omit() to delete all the NA values or use complete.cases() to delete rows that contains NA values.
...
5
Solved
If I do the following in Objective-C:
NSString *result = [NSString stringWithFormat:@"%1.1f", -0.01];
It will give result @"-0.0"
Does anybody know how I can force a result @"0.0" (without the ...
Crockett asked 10/6, 2012 at 14:15
13
Solved
I want to repeatedly zero a large 2d array in C. This is what I do at the moment:
// Array of size n * m, where n may not equal m
for(j = 0; j < n; j++)
{
for(i = 0; i < m; i++)
{
array[...
Dependent asked 25/3, 2010 at 13:57
13
Solved
I'm working on a project where i find i'm checking for the following in many, many places:
if(item.Rate == 0 || item.Rate == null) { }
more as a curiousity than anything, what's the best way to ...
5
Solved
I have a vector of 0s and 1s and want to identify the indices where a string of 0s is surrounded by 1s. If the number of 0s between the 1s is lower or equal than 5, I want to change these zeros to ...
4
Solved
How to create a Guid that all of its elements are zero. i.e. {00000000-0000-0000-0000-000000000000}. I could use:
Guid.Parse("{00000000-0000-0000-0000-000000000000}")
But is there any easier meth...
5
Solved
I have a simple numpy array.
array([[10, 0, 10, 0],
[ 1, 1, 0, 0]
[ 9, 9, 9, 0]
[ 0, 10, 1, 0]])
I would like to take the median of each column, individually, of this array.
However, there...
7
Solved
I have a function that returns either a Card, which is a struct type, or an error.
The problem is, how can I return from the function when an error occurs ? nil is not valid for structs and I don'...
Nordau asked 11/3, 2013 at 10:12
8
Solved
Is it possible to check if a float is a positive zero (0.0) or a negative zero (-0.0)?
I've converted the float to a String and checked if the first char is a '-', but are there any other ways?
Trug asked 14/3, 2014 at 15:20
2
Solved
In python how can a UUID be created with all zero values?
There is a similar question that is asked and answered for java, this question is specific to python.
Disobey asked 2/7, 2021 at 17:42
3
Solved
SELECT DATE_FORMAT(date, "%b") AS month, SUM(total_price) as total
FROM cart
WHERE date <= NOW()
and date >= Date_add(Now(),interval - 12 month)
GROUP BY DATE_FORMAT(date, "%m-%Y")
This que...
Stichter asked 22/12, 2014 at 10:30
2
Solved
I am crunching large amounts of data without a hitch until I added more data. The results are written to file as strings, but I received this error message and I am unable to find programming error...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.