I'm receiving some data which I need to turn them to numbers, make some computation with that and then I need to use the same data in another place bu ...

JavaScript: turn a string into a number and then turn it back to string

I'm receiving some data which I need to turn them to numbers, make some computation with that and then I need to use the same data in another place bu ...

Per se number of row in a numpy array - Python

Imagine that I have a numpy array of 'n' rows by 'm' elements, i.e. shape = (n,m). If the array is called xrandom and I have a routine like the one s ...

find if a number set has intersection with another set

background: the service port number in firewall access-list has different format like: single number: 22,443 range:10000-65535 I am working around ...

regex expression to match multiple digits on a single line

Trying to get multiple digits even if its on the same line. this is what I have so far import re lines = ''' 1 2 3 4 G3434343 ''' x = re.finda ...

how to convert an array element [ - 0 ] to a string?

I am trying to convert an array of numbers to an array of strings and get the first character in each element of the array. Tell me what I am doing wr ...

Can I somehow pick a specific number from a list?

I'm new at programming and i need help with my "work". I need to print specific number from a list. List = from 1 to 10 000 and i need to pick every s ...

Why is the Number() function not working when I use it this way?

function sumDigits(num) { // your code here let nums = num.toString(); let sum = 0; for(let i = 0;i<nums.length;i++){ Num ...

how do I get an input field in html to ensure the pattern contains a specific country code eg 1472 followed by 3 number and then 4 numbers

I have different sign up pages that load for different countries, and I need the telephone input to be for that specific country, such as on one page ...

Find specific value in string python

How can I find all numbers different of zero in a such string. for example: '\\0\\0.412583\\0.4415169\\0.4140446\\0.3750735\\0\\0.4128125\\0\\0' I t ...

how to compare numbers in cypress

I'm new to Cypress and I need to compare theese two numbers: 1045,92 and 1045,92 I try like this But: expected '1 045,92 р.' to deeply equal ...

How to validate phone number with zero at the front in php?

I am validating phone numbers and this is my conditions, if (!empty($phone)) { if (!filter_var($phone, FILTER_VALIDATE_INT) || !filter_var($phone ...

How do I make my python program generate the prime numbers in a certain interval just once instead of them being printed multiple times?

While writing a program to find the prime numbers in a certain range, the code prints every prime number multiple times instead of just listing it onc ...

Return how many unique digitis a number contains

I have a string of digits and I want to count how many unique digits the string contains. Example: Expected output: I have achieved this using ...

How to Save Decimal Without Rounding in VB.NET

I have a program that save amount that is inserted by user here is the function to save the amount inserted by user Then when I insert the amount ...

Problems with number, and Color3 values

I have been trying to make a TextLabel change color from red, to green over the RGB spectrum more each click. I did have it working, but on seperate p ...

Sequence n-3,…,n+3 for pagination without going negative

I need to create a sequence of numbers for pagination links, this sequence needs to be 7 numbers in length and start 3 numbers before the given number ...

Optimizing a Project-Euler question (#8) more

The problem is solved. (Project-Euler #8) But I was wondering - Can we optimize it even more? Problem - Given a text array of numbers (lets say DATA ...

ow can I assemble a camera that reads a sequence of numbers? with react-native

Is there any library that reads sequence of numbers for example on a paper has 123456789 I want to get only the first 3 digits with the camera, I did ...

Count how often a number occurs in the cell excel

I have a list of numbers in excel for example: And I want to count the number of occurrence of the numbers So it will be like this ...

How to create a hash out of small positive and negative decimal values (much less than zero) in JavaScript?

When I do this: It always equals 0, no matter what the decimal numbers are. Maybe the decimals are not in 32-bit form, in some weird form? I wa ...

Sorted:

Quality: