Top "Numbers" questions

A number is a mathematical object used to count, measure and label.

Best way to restrict a text field to numbers only?

I'm using the following Javascript to restrict a text field on my website to only accept numerical input, and no …

javascript html textbox numbers textfield
How can I generate a random number in a certain range?

How can I create an app that generates a random number in Android using Eclipse and then show the result …

android random numbers range generator
Excel vba - convert string to number

So, I used the left function to take the first 4 characters of a string and I need to run a …

string vba numbers vlookup
How to label scatterplot points by name?

I am trying to figure out how to get labels to show on either Google sheets, Excel, or Numbers. I …

excel google-sheets numbers graphing
How to limit the maximum value of a numeric field in a Django model?

Django has various numeric fields available for use in models, e.g. DecimalField and PositiveIntegerField. Although the former can be …

python django django-models numbers
How to convert a byte array to its numeric value (Java)?

I have an 8 byte array and I want to convert it to its corresponding numeric value. e.g. byte[] by = …

java algorithm bytearray numbers
php random x digit number

I need to create a random number with x amount of digits. So lets say x is 5, I need a …

php random numbers
Java's L number (long) specification

It appears that when you type in a number in Java, the compiler automatically reads it as an integer, which …

java numbers long-integer short specifications
Format string to a 3 digit number

Instead of doing this, I want to make use of string.format() to accomplish the same result: if (myString.Length &…

c# string numbers format
OpenMP set_num_threads() is not working

I am writing a parallel program using OpenMP in C++. I want to control the number of threads in the …

c++ multithreading numbers set openmp