numeric Questions
5
Solved
I've imported a CSV file to R using RStudio where I am trying to plot points per game against minutes per game. However the minutes per game is in the format mm: ss and I'm having a hard time findi...
56
Solved
I'm hoping there's something in the same conceptual space as the old VB6 IsNumeric() function?
Mascagni asked 6/10, 2008 at 19:12
12
Solved
It seems that when I use a numeric type as a key name in an object, it always gets converted to a string. Is there anyway to actually get it to store as a numeric? The normal typecasting does not s...
Dysphagia asked 3/9, 2010 at 5:58
4
I have a dataframe created form a JSON output that looks like this:
Total Revenue Average Revenue Purchase count Rate
Date
Monday 1,304.40 CA$ 20.07 CA$ 2,345 1.54 %
The value stored are recei...
1
I'm trying to make my own game engine for learning purposes, but I'm also trying to make something that is optimized and is capable of handling a diverse amount of cross-platform games.
That said...
Duley asked 30/9, 2019 at 16:54
3
I want to approximate tan(x) quickly to within 1 ULP on the range -pi/4 to pi/4. I have found a solution that is almost good enough but the last factor of two eludes me even with considerable compu...
Cashier asked 23/11, 2023 at 11:41
3
Solved
While reading about std::inclusive_scan, there does not appear to be any examples.
It strikes me as very similar to std::partial_sum.
partial_sum:
template< class InputIt, class OutputIt >...
Plumbing asked 24/6, 2016 at 5:23
2
Solved
I'm using Django to create an application (using PostgreSQL) that needs a column numeric(15,6), but I'm not finding a method to do this.
Lolly asked 22/9, 2015 at 15:17
10
Solved
I have a file that looks like this:
1:line1
14:line2
135:line3
15:line4
I need to prepend leading zeros to each line to make it look like this:
00001:line1
00014:line2
00135:line3
00015:line4
Is ...
Busra asked 17/10, 2023 at 12:32
4
My student and I both loaded the same dataset, installed the same packages, and were running the same code. When I run "frq" I get a frequency table and the variable is labeled as "n...
Nifty asked 7/12, 2020 at 17:4
6
Since this question gets asked about every week, this FAQ might help a lot of users.
How to convert an integer to a string in C++
how to convert a string into an integer in C++
how to convert a f...
Sells asked 13/3, 2011 at 14:47
4
Solved
I have a table which their values are NUMERIC(16,4)
Example:
12.4568
13.2
14.05
I want to display the value with only 2 digits after dot without rounding.
Expected result is:
12.45
13.2
14.05
Wha...
Brasca asked 23/2, 2016 at 9:30
2
Through code profiling, I have found the Math.sqrt function specifically to be a major bottleneck in a large doubly-nested loop that runs every timestep in my program. Is there any way to improve i...
Dipody asked 24/5, 2016 at 22:40
7
Solved
I need a regular expression for validation two or one numbers then , or . and again two or one numbers.
So, these are valid inputs:
11,11
11.11
1.1
1,1
Bullate asked 28/3, 2011 at 10:6
11
Solved
How to convert an integer number into binary vector using R?
For example :
number <- 11
[1] 1 0 1 1
what is the fastest possible method of conversion (using R code or some existing functions...
Gaptoothed asked 23/8, 2012 at 8:54
9
Solved
Has anyone got an idea if there is any inbuilt functionality in Go for converting from any one of the numeric types to its binary number form.
For example, if 123 was the input, the string "111101...
2
Solved
Problem:
Let's say we have the following list of strings {"Test1.txt", "Test2.txt", "Test11.txt", "Test22.txt"}, sorting them using String::compareTo or Coll...
5
Solved
I have an array of values which are either all-letters or all-numbers and need to sort them in an ascending fashion. Additionally, I want all-numeric values to be moved to the end of the array so t...
Shephard asked 25/9, 2012 at 19:45
5
Solved
I want to preface this by saying I'm an absolute programming beginner, so please excuse how basic this question is.
I'm trying to get a better understanding of "atomic" classes in R and maybe thi...
11
Solved
bc doesn't like numbers expressed in scientific notation (aka exponential notation).
$ echo "3.1e1*2" | bc -l
(standard_in) 1: parse error
but I need to use it to handle a few records that are e...
Intromit asked 14/10, 2012 at 13:19
3
Solved
I have some strings which can be in the following format:
sometext moretext 01 text
text sometext moretext 002
text text 1 (somemoretext)
etc
I want to split these strings into following:
text be...
Margy asked 15/1, 2013 at 22:23
2
Solved
I have two variables in Stata, both numeric variables that have somehow been recorded as string variables. I need them converted to numeric variables so that I can generate a new variable with them...
4
Solved
I am trying to create a numeric TextField for Integers by using the TextFormatter of JavaFX 8.
Solution with UnaryOperator:
UnaryOperator<Change> integerFilter = change -> {
String inpu...
41
Solved
How would you check if a String was a number before parsing it?
10
Solved
I'm unable to get numeric comparisons working:
echo "enter two numbers";
read a b;
echo "a=$a";
echo "b=$b";
if [ $a \> $b ];
then
echo "a is greater than b...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.