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...
Frequentative asked 12/3, 2019 at 14:4

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

I have the following awk command within a "for" loop in bash: awk -v pdb="$pdb" 'BEGIN {file = 1; filename = pdb"_" file ".pdb"} /ENDMDL/ {getline; file ++; filename = pdb"_" file ".pdb"} {print...
Raceway asked 24/8, 2011 at 20:48

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...

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...
Sewage asked 28/3, 2018 at 15:59

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(...
Frisian asked 21/11, 2012 at 17:44

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

I have a stored procedure as follows: CREATE PROC [dbo].[Incidents] (@SiteName varchar(200)) AS SELECT ( SELECT SUM(i.Logged) FROM tbl_Sites s INNER JOIN tbl_Incidents i ON s.Location = i....
Warrick asked 10/5, 2010 at 12:55

10

Solved

How can I ignore ZeroDivisionError and make n / 0 == 0?
Jellybean asked 5/12, 2014 at 13:57

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. ...
Aguilar asked 2/4, 2012 at 13:48

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 ...
Polio asked 11/3, 2009 at 4:4

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 ...
Auguste asked 3/2, 2022 at 15:17

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...
Anodyne asked 2/9, 2013 at 8:22

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...
Jewelry asked 26/2, 2014 at 17:43

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...
Marcille asked 15/6, 2021 at 5:58

© 2022 - 2025 — McMap. All rights reserved.