Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
32 views

Large numbered list-keep text aligned with large number

I have a numbered list that has large round numbers for steps in a corresponding image. This works, but want the text and supporting text to align tight with the round number. As in Step 3 in the ...
slang75's user avatar
2 votes
2 answers
115 views

Python class that does integer operations mod n

I am trying to create a Python class that does operations mod n. For example using mod 100: 11*11==21 66+39==5 1+2+3-30==73 2**10==24 This is how I am doing it: class ModInteger: def __init__(...
Username260138's user avatar
0 votes
1 answer
89 views

Are JSON numbers always double-precision floating-point numbers?

I have two conflicting mindsets: Mindset 1: JSON numbers are always double-precision floating point numbers. Therefore: There is no semantic difference between 1 and 1.0 - both represent the same ...
user29873842's user avatar
3 votes
3 answers
116 views

fscanf not reading second line from file

#include <stdio.h> #include <stdlib.h> #define MAX_SIZE 100 // Maximum size of the arrays int main() { FILE *file; int array1[MAX_SIZE], array2[MAX_SIZE]; int i = 0, j = 0; ...
user1237538's user avatar
1 vote
4 answers
95 views

I was trying to generate random values in Swift and what I want is random numbers that can be repeated but not 2 times consecutively same values

My code looks like this. Get random values but some consecutively such as 10 after 10. var numArr = [Int]() for _ in 0..<10{ var numbers = Int.random(in: 0...10) numArr.append(numbers) } ...
Kaung Set's user avatar
0 votes
0 answers
104 views

Clean and save as unicode text

I have created a macro using chat gpt to help me save Excel files and clean them as I receive a lot of Excel files. The problem is I never want to edit the raw data - just clean it. I have attached a ...
New_user1245's user avatar
1 vote
3 answers
101 views

Repeat a sequential numbering of duplicated values starting from a given value in R

In a new variable row2, how to repeat a sequential numbering (here a sequence from 3 to 6) by group of duplicated row1 values, which would start from a given value (here from row1 = 3), even if the ...
denis's user avatar
  • 844
0 votes
0 answers
55 views

How to add two Number generics in Kotlin?

I am aware of this question having been asked several times (eg. Kotlin, generic operation on Number), but unfortunately, in my case the answers are not satisfactory. The situation is this: I'm ...
AlgebraicsAnonymous's user avatar
0 votes
4 answers
161 views

How to insert a new row for each missing number of one variable while filling with NA for other variables using data.table in R?

How to insert a new row every time there is a break in the y column numbering, while filling the other columns with NA? Edit: Iroha's suggestion based on tidyr::complete() works fine, as do the others....
denis's user avatar
  • 844
0 votes
1 answer
63 views

AppleScript and Numbers - adding rows

In numbers I have columns with data like this: I want to iterate through cells and for ex. if value of cell in row 6 is not equal to value of. cell in row 5 then add an empty row above the row 6 (...
emerog's user avatar
  • 79
-1 votes
4 answers
85 views

Why does javascript think my string is a number?

!isNaN("0x8d0adfd44b4351e5651c09566403e7edc586243dc0890f8e86c043a924a9592c") The above results in TRUE, meaning javascript thinks this is a number. I've also tried !isNaN(parseFloat("...
Alex Libengood's user avatar
2 votes
1 answer
194 views

Why does Math.pow(10, -4) produce different results in JavaScript and C#?

I noticed that the result of Math.pow(10, -4) differs between JavaScript and C#. JavaScript Math.pow C# Math.Pow In JavaScript, it seems the result is expressed as an approximation, possibly due to ...
singhui hong's user avatar
-1 votes
1 answer
75 views

Collision of array elements

Is it feasible to design an algorithm like this? Specifically, is it possible to write a Python code for the following logic? You have an array of numbers (e.g., 1533 consecutive numbers). It doesn't ...
John888's user avatar
2 votes
1 answer
67 views

Strange behaviour with the NumberFormatter class

I'm currently playing around with the NumberFormatter class, but I noticed a strange behaviour. I'm trying to have two fraction digits, but depending on the PHP version, sometimes the result is ...
TwystO's user avatar
  • 2,562
0 votes
0 answers
56 views

Display full amount value number double in words with vb.net

I'm trying display full amount value number double in words with vb.net but the double result after the point is not according to is there anything wrong with my code but for integer values there is ...
dlaksmi's user avatar
  • 379

15 30 50 per page
1
2 3 4 5
814