Questions tagged [numbers]

A number is a mathematical object used to count, measure and label. Questions about using numbers in variables processing, numbers processing, conversion, display, logical numerical changes, data type existence, etc. For questions regarding phone numbers, please use tag [phone-number].

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Letters in numbers in data frame

I would like to remove the letter K in all the numbers in the column Vol. for example, i would like the 122.0K to be replaced by 122000. my file name is bitcoin and the column concerned is Vol. ...
Ravin's user avatar
  • 1
-2 votes
0 answers
10 views

This binary subtraction is right or wrong. Please explain me

Please explain me what is wrong my math calculation. This is my exam note. I was solve this binary subtraction small number to large number. When I calculated by using binary calculator I got exactly ...
Sumon Ahmed's user avatar
0 votes
0 answers
10 views

Tar command adds permission number to filenames

I did "tar -cvf mydata.tar mydata/". Then, I copied it to my window PC and untar it. Now, I can see that some files have strange file name. Original : mypicture.png Untar : mypicture....
JayJay-K's user avatar
1 vote
1 answer
40 views

Negative and positive numbers golang

I can't figure out how to build the code correctly. Please help me dumb( Here is the task itself Write a program that uses the number entered to determine which of the four stacks it should be placed ...
Belevcek's user avatar
0 votes
2 answers
44 views

regex expression to find 10 or 100,1000...doesn't work

I create the regex /(10?|10{2,})/g to find 1,10 or 100,1000... but the code below doesn't return the expected result. I don't know where I went wrong, please help me! <!DOCTYPE html> <...
Linh Chi's user avatar
-1 votes
2 answers
29 views

Strings and arithmetic operations

people. Can you please tell me how can I turn a string into arithmetic operation. For example: string_with_operation = "(23 + 3) / 4" usual_operation = (23 + 3) / 4 I want a ...
Тимофей Главицкий's user avatar
-3 votes
0 answers
30 views

five-digit number and move the last digit to the beginning [closed]

My problem: If user types 12345 it should be reversed to 54321. But the result I get is reversing from 12345 to 6234. Here is my code : Here is the result :
Yeow's user avatar
  • 1
0 votes
0 answers
9 views

Concatenate two numbers to create a title in one cell

for experiments we use an excel sheet to mark the results. This question is about creating the title of each column. So the title should be T1h(20°C), where the number 1 and number 20 are variables. ...
Wilfred van Schuppen's user avatar
-1 votes
2 answers
39 views

Removing all numbers form an input in Python

Is there a way to remove all numbers in Python? like so: user input: Lorem Ipsum 78432 Lorem Ipsum Output: Lorem Ipsum Lorem Ipsum I've tries looking it up, its only about removing spaces, I've also ...
Tokyn Blast's user avatar
-3 votes
0 answers
26 views

How to round 21.87499999999994 to 21.88? [duplicate]

I know this is very specific but is just an example, I already tried: Math.round (Math.round(num + "e+2") + "e-2") toFixed(2, 3, 4..) Math.trunc Math.pow.. But nothing works.. ...
Alexia Ribeiro's user avatar
1 vote
2 answers
26 views

Php order array by number of elements

Consider this simple example array: $letters = [ ['a', 'c', 'f'], ['c', 'f'], ['b', 'd', 'x', 'c', 'f'], ['f'] ]; I need to order the array in descending order by number of letters (...
G. Rey's user avatar
  • 35
-2 votes
1 answer
37 views

Regular expression to match two numbers

I need a regular expression that matches 2 float numbers that could be separated by a space, comma or nothing. A float number could be integer (made of digits), a fraction (digits, decimal point, ...
haael's user avatar
  • 970
1 vote
1 answer
29 views

How to change values to varying amount of asterisks according to several thresholds, and why asterisks were treated as number?

1. How to change values to varying amount of asterisks according to several thresholds 2. Why asterisks were treated as number? Firstly, define a function to coerce all non-numeric values to NAs # ...
AlpacaKing's user avatar
0 votes
4 answers
80 views

How to sed all points except decimal ones

I'm trying to remove all points in a file except the one used for decimals Example : Hello everyone. How. to sed 4.32 and 4. ? Should be replaced by : Hello everyone How to sed 4.32 and 4. ? I tried ...
tycyly's user avatar
  • 259
0 votes
2 answers
30 views

POWER BI: Show the Value from a Cell with a measure : using Dynamic Index || Count Dax Formula?

I have a table of power market which contains a column of Daily Return called "LN" (Sort Descending). I have written a measure which has given me the specific number of the row containing ...
Parn's user avatar
  • 1
0 votes
0 answers
17 views

how js compares a str with a number [duplicate]

when I receive user's age, but I don't change it to number, I can understand if my client's age is 18 or not... var isAge = prompt("How old are you?"); alert(typeof isAge) //string if (isAge >= ...
AliDa's user avatar
  • 1
0 votes
0 answers
30 views

Excel custom number format

Excel custom number format: I would like to use this custom number format for negative values as well. [>=1000000]$#.##0.."M";[>=1000]$#.##0."K";$#.##0 M: for million K: for ...
EIAV's user avatar
  • 9
0 votes
1 answer
47 views

Excel Dropdown list generates unique ID number for each value

I have an Excel spreadsheet with two columns. Column A is filled with the same DropDown list that contains "Archive, Directory, Cloud". Column B must be filled with ID depending on the value ...
Giuseppe BMTHPeppe Marino's user avatar
1 vote
1 answer
67 views

Array of numbers Excel 2013

I need to use formula that will create array of numbers in 1 column and 20 rows. Numbers are between 36.1 and 36.8 I'm currently using =RANDARRAY(20, 1, 36.1, 36.8) It works fine in my Excel 2021, but ...
Chrono's user avatar
  • 11
-1 votes
1 answer
52 views

What is the difference between Number.isFinite() and Number.isInteger() in JavaScript?

I can't seem to find a difference in results when using Number.isFinite() and Number.isInteger(). I get that finite means not infinity, but Number.isInteger(Infinity) returns false too, so when do ...
jordanfb's user avatar
  • 559
-1 votes
1 answer
38 views

Format Numbers to always show only first 4 decimal numbers

I'm trying to print my numbers that will show only the first 4 numbers of the decimal and not everything. Unfortunately I didn't find a solution, I tried some functions attempts but nothing worked out,...
RasmonT's user avatar
  • 391
0 votes
0 answers
11 views

Streamlit - trailing zeroes

I have a dashboard that I have created using streamlit and I am facing the issue of trailing zeroes even after applying the the following comb_target_ach = [round(float(x),1) for x in comb_target_ach] ...
Manali Hedaoo's user avatar
0 votes
0 answers
17 views

Issues with Adding Verified Caller IDs in Twilio Sandbox for Different Countries

In the context of a Twilio sandbox account created for India, there's a need to add verified caller IDs. The process works smoothly when adding Indian numbers to the verified caller IDs list; however, ...
Sonali's user avatar
  • 9
0 votes
1 answer
16 views

Directly Derive Delegate for Double Division

The double numerical type has a division operator. I can divide one double by another by simply writing x / y where x and y are both doubles. My understanding is that, in the computer, this operation ...
256Bits's user avatar
  • 384
-2 votes
3 answers
84 views

Unique Number Generator in Python

I am trying to make a number generator for a project I am working on, and I need every number to be unique. The range is '0-100000'. I have the following: for i in range (1,100000): num = ...
Brendan Carey's user avatar
2 votes
0 answers
44 views

How to format scientific E notation into human readable numbers? (numbers larger than BigDecimal)

I'm trying to create a number class which can hold values from 4.9E-324e-1.7976931348623157E308 to 1.7976931348623157E308e1.7976931348623157E308 in both signs. (yes, the exponent is also a double) My ...
LXIV's user avatar
  • 21
0 votes
3 answers
62 views

How to find formula that zero as duplicate but sequentially as 1 and duplicate zero but not sequentially as 0 in a row?

For example, in first row as 1 and third row as 1 but second row as 0 because the second row the zero duplicate not sequentially is there any formula to check this in excel?
captmorgan's user avatar
0 votes
0 answers
52 views

Excel convert YYYYMMDDhhmmss [14-char text] to Date + Time (fastest way)

Recently, I discovered a very quick way to convert YYYYMMDD [8-digit number starting with the year] to a date, via the "Text to Columns" conversion option in the data tab of MS Excel. It ...
Vasko's user avatar
  • 33
0 votes
0 answers
23 views

add fixed value to date

I need a function to calculate the difference of dates starting from 1/1/xxxx. We need to have 3 digits which means we need to add 0 in the case of the first three months (number of days less than 100)...
Dragan's user avatar
  • 13
0 votes
0 answers
29 views

How to keep the zeros when deleting a number from my React number hook?

I'm trying to replicate the behavior of a text field from an application I'm familiar with. However, I couldn't find any package that provides the same behavior, and I'm struggling to devise a logic ...
Alessandro Amos's user avatar
0 votes
1 answer
105 views

Fixed Point Binary Multiplication Over Flow Problem

I am doing 32bit unsigned multiplication of two fixed point integers like below: 888.88 x 805.00 = 7,155,484,000 (greater then 32 bit) But i need the result like below: 888.88 x 805.00 = 715,548.4 I ...
Adil Ahmed's user avatar
0 votes
1 answer
39 views

how do i make it so a word has value in google sheets

I would like for google sheets to recognise a word as a number such as when I do =(SUM)A2+B2 and A2 is the word 'dingus' for it to think it is 100. It must be in a way where I can just put 'dingus' in ...
Gage O'Shea's user avatar
0 votes
1 answer
49 views

Autofill numbers with letter prefixes in excel

How do I autofill in excel when there is a prefix? Here is my code that autofills column A with user input start number and last number. But I want to modify it so that it can handle numbers with ...
user21920024's user avatar
1 vote
1 answer
30 views

Trying to make calculator and have one little problem

I am trying to make a calculator and I have a small problem. I have created a function that should show the user the final result, but every time the final result is undefined, but in console my ...
Riverain's user avatar
0 votes
2 answers
28 views

js merge text in hebrew

i am trying to merge two string in hebrew with letter and number , the string Does not connect to a correct string and the number and sign - moves to the end of the sentence the result should have ...
user22327559's user avatar
0 votes
1 answer
26 views

Changing the functionality of numbers in JS (for educational purposes)

I was wondering if there was some way to change the Number object (or other objects) so that when expressions like 4(3 - 1) are ran, instead of throwing an error, the result is the same as 4 * (3 - 1) ...
Ryan's user avatar
  • 3
0 votes
0 answers
20 views

how can I find the exceptions that my code isn't giving the right answer to

we got a tv with 100 channels. The TV remote control consists of buttons from 0 to 9, _ (underscore), up, and down. The up and down buttons increase or decrease the TV channel by one. To go to a ...
shahriarkm's user avatar
1 vote
4 answers
103 views

Cannot implicitly convert type 'bool' to 'int' with switch statement

I'm very new to c#, and I'm trying to make a simple number-guessing game, basically the user enters their guess and if the guess is the higher than the number, the system will display the it's higher ...
Indective's user avatar
-1 votes
2 answers
76 views

how to get number from string without regex

Without using regex, is there a way to get number from a string in JavaScript? For example, if input is "id is 12345", then I want 12345 number in output. I know a lot of regex solutions, ...
Anonymous's user avatar
0 votes
1 answer
45 views

Sorting array with leading zeros in naturally order, ignored in foreach loop

I can't sort a list of key/value pairs in an object in natural order when a leading zero precedes a 4-digit key. This is the object with key/value pairs: plain_options = { "1001":"...
Meatwant's user avatar
1 vote
0 answers
19 views

How can convert a string 16 characters long and with decimal to Number [duplicate]

I have a string that represents a number 2.882.956.766.235.065,23. I would like it to convert to 2882956766235065.23 but for string with a shorter length everything is fine, with strings of the same ...
Salvatore Lorello's user avatar
-2 votes
3 answers
52 views

Parse number with thousands separator

I want different number formats parsed properly. The strings could use commas or dots, so this is what I'd like: "-1526" → -1526.0 "15 000" → 15000.0 "15.000,00" → 15000....
fer0n's user avatar
  • 305
0 votes
3 answers
67 views

Unformatting EU and US numbers in javascript

Hey I am trying to write some code to handle the unformatting of EU and US numbers but I can not get a perfect solution. For example I would like 1.222.222,89 to be 1222222.89 1,222,222.89 to be ...
eamohego's user avatar
0 votes
0 answers
15 views

Automate version filenames check up in snowflake schemachange

I have multiple feature branches are under development and will be deployed to different release branches in Snowflake. The files are named with version number in order to use Schemachange. CICD ...
Micki L's user avatar
0 votes
1 answer
28 views

Swift: Why is Apple's Numbers .TSV export unable to have its values parsed by the tab character?

I'm working on a basic localization pipeline where a spreadsheet exports values as TSV (tab-separated values). Numbers exports "TSV" but the output does not show a \t character. If I open ...
horseshoe7's user avatar
  • 2,745
0 votes
1 answer
21 views

To add page views of certain documents in SharePoint

I am not able to add a feature to show the user how many users have seen the certain page in SharePoint. Please help with it. To create a new feature that will be able to give the user insight about ...
shashankb's user avatar
0 votes
1 answer
52 views

fetch only numbers side by side in a column without the rest of numbers in it

I've got a string column - name it COLUMN_X - in which there are comments from users about transactions. I need a method to fetch only numbers that are side by side, not the ones which are before/...
Simao Golasew's user avatar
0 votes
1 answer
80 views

Dividing by 3 in Python decimal

Just curious about how decimal package deals with infinite decimal. so I tried Python 3.7.3 (default, Oct 31 2022, 14:04:00) [GCC 8.3.0] on linux Type "help", "copyright", "...
Kennyhyun's user avatar
  • 1,051
0 votes
2 answers
44 views

Display the maximum and the minimum of a row of numbers the ending signal is a 0

I've found a French exercise online. This is a translation of the wording: Write a program to display the maximum and the minimum of a row of integers (the row is one or more inputs by the user). The ...
jgabrielregis's user avatar
0 votes
1 answer
30 views

Find closest array given list of arrays [closed]

Given a list of arrays in a variable, how can I find the index from the most closest array to the main array that I have? I need a function that does this by the numerical values of each index of the ...
Monke's user avatar
  • 51

1
2 3 4 5
243