Top "Numeric" questions

This tag is for questions concerning problems using numbers which either cannot be exactly solved, or where the exact solution may be much more difficult to acquire than by using numerical methods.

How to create a numeric vector of zero length in R

I wonder, how can I create a numeric zero-length vector in R?

r vector numeric zero
Evaluating string "3*(4+2)" yield int 18

Is there a function the .NET framework that can evaluate a numeric expression contained in a string and return the …

c# string math numeric evaluate
Why SQL Server throws Arithmetic overflow error converting int to data type numeric?

I have an error being thrown by SQL Server Management Studio when running this code: declare @percentage numeric(3,2) set @percentage = …

sql-server variables types numeric
Right way to convert data.frame to a numeric matrix, when df also contains strings?

I have a data frame taken from a .csv-file which contains numeric and character values. I want to convert this …

r if-statement matrix numeric
How to convert a number to string and vice versa in C++

Since this question gets asked about every week, this FAQ might help a lot of users. How to convert an …

c++ string type-conversion numeric c++-faq
How to convert Varchar to Double in sql?

I have problem with my query when I was trying to convert the varchar field to double (numeric). I have …

mysql sql numeric varchar
IsNumeric function in c#

I know it's possible to check whether the value of a text box or variable is numeric using try/catch …

c# function parsing try-catch numeric
What's the difference between integer class and numeric class in R

I want to preface this by saying I'm an absolute programming beginner, so please excuse how basic this question is. …

r class object integer numeric
PHP: Best way to check if input is a valid number?

What is the best way of checking if input is numeric? 1- +111+ 5xf 0xf Those kind of numbers should not …

php input validation numeric
PHP - Get array value with a numeric index

I have an array like: $array = array('foo' => 'bar', 33 => 'bin', 'lorem' => 'ipsum'); echo native_function($array, 0); // bar …

php arrays get indexing numeric