Questions tagged [divide]

Separate or be separated into parts

Separate or be separated into parts

688 questions
-2
votes
1 answer

What is the purpose of dividing a string's length in a palindrome?

I am currently trying to understand what is achieved when we divide a string's length by two. I understand how the loop in the if statement works by comparing each character with the initial string, but I can't wrap my head around this part and I…
Ap95
  • 1
-2
votes
2 answers

Dividing a cell in a table

I need to divide a cell in such a way that it has 1 title on top, and 2 below it in html without disrupting the rest of the table. table example I've tried doing a nested table, and playing around with colspan and rowspan, but I'm new at this and…
TimV
  • 1
  • 2
-2
votes
1 answer

Dividing ggplot in different 2 ggplot

I have this ggplot :plot1 I've obtained this plot using this code : g<- ggplot(base__, aes(x=Race_name, y=ec_prem, color=nouv_grp))+scale_color_brewer(palette = "Paired")+ geom_jitter(position=position_jitter(0.2))+xlab("Course")+ylab("Ecart /…
chlooo
  • 11
  • 2
-2
votes
2 answers

How does the

I have been searching on Google and other search engine products and searching: What is
used for in HTML? Here is what I get: The
tag defines a division or a section in an HTML document. The
tag is used as a container for HTML…
gamer214
  • 23
  • 7
-2
votes
2 answers

C++ Splitting array of strings into subgroups

I have an array of string (which length is always different) and I need to split this into groups (which also number is different from time to time); int main() { // Array that I want to split; void Names = { Sara, Kaya, Hya, Jenny, Mary,…
-2
votes
1 answer

Create sublists of scala list

Input: List(1,2,3) Expected Output 1: List(1), List(1, 2), List(1,2,3) Expected Output 2: List(1, 1, 2, 1, 2, 3)
Jithin
  • 19
  • 2
-2
votes
2 answers

how to centralizer element in div from CSS?

There is a class named gdiv in my style sheet which refer to the general div condition. I can change my text alignment from gdiv. but can not change alignment of everything like div inside div. How can I align everything?
-2
votes
3 answers

Wrong result for division of two doubles in release build

When I compile my application in Release mode I get incorrect division result of 40.0 / 5 = 7. In debug compilation it is correct, and result is 8 I tried to cast to double, from double, to int, without abs() etc, but no luck. I know this must be…
MasterBLB
  • 27
  • 5
-2
votes
2 answers

C# Dividing a Matrix into Sub Blocks

i have a matrix came from an image 1600x1600. now i need to assign this matrix into 4x4 blocks. As an example: 00 01 02 03 IMAGE = 04 05 06 07 BLOCK(i) = 00 01 BLOCK(i+1) = 02 03 08 09 0A 0B …
-2
votes
1 answer

db2 sql giving me 0 as the result when divide operation is done

SELECT CAST(64088.0200 AS DECIMAL(18,4))/ CAST(5555555555.0000 AS DECIMAL(18,4)) FROM SYSIBM.SYSDUMMY1; This Query is giving me 0 as the result but if you do it with normal calculator then its result is 0.0011535843601154 - So at least I need the…
Shiva Komuravelly
  • 3,252
  • 1
  • 15
  • 16
-2
votes
1 answer

divide two list of numbers in python (using list comprehension and not using zip)

i'm fairly new to python Language . I have two list like this: and i don't install the numpy package yet . First_List = [10, 2, 5, 4, 100] Second_List = [5, 10, 20, 20, 25] How can I Divide each element in First_List by elements in the…
Nima Geran
  • 115
  • 1
  • 3
  • 10
-2
votes
3 answers

divide field input by 12 using Javascript

I need to take the number that the user is keying into an input field and display underneath the field what this number would be divided by 12. This needs to be pure JS, not Jquery. ideally it needs to be rounded off also, so 1083.3333333333333…
-2
votes
1 answer

Divide rows in a given column by a name-speficied row

Having a dataframe in R, I'd like to divide all rows in a given column by a name-speficied row (here 'ABC') from the same column, and apply these to all the columns using this specific row as the normalizer. Input: A 1 1 B 1 2 C 4 4 ABC…
user2904120
  • 416
  • 1
  • 4
  • 18
-2
votes
1 answer

Dividing integers does not get a result

I'm trying to divide 2 integer and get the float results but it does not seem it is working properly. Can you see where am i doing wrong? sscanf part is working, the problem is at the dividing part. char *latitude = "4055,1792.N"; int val1; int…
abdullah cinar
  • 543
  • 1
  • 6
  • 20
-2
votes
1 answer

PHP calculate total and split

How to calculate total and split on 4 without duplicate line with php? Example: 27 43 57 29 12 23 44 23 52 I want to divide summary by 4 without duplicating line. My point is to have 4 persons with closest results. Last few hours…
Simeon
  • 3
  • 2