Top "Numbers" questions

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

Add st, nd, rd and th (ordinal) suffix to a number

I would like to dynamically generate a string of text based on a current day. So, for example, if it …

javascript jquery numbers
PHP: Express Number in Words

Is there a function that will express any given number in words? For example: If a number is 1432, then this …

php numbers words
Accept only numbers and a dot in Java TextField

I've got one textField where I only accept numbers from the keyboard, but now I have to change it as …

java swing filter numbers textfield
How do I round a number in JavaScript?

While working on a project, I came across a JS-script created by a former employee that basically creates a report …

javascript floating-point numbers rounding
Why is Double.MIN_VALUE in not negative

Can anyone shed some light on why Double.MIN_VALUE is not actually the minimum value that Doubles can take? …

java numbers floating-point
How to format a number from 1123456789 to 1,123,456,789 in C?

How can I in C language format a number from 1123456789 to 1,123,456,789? I tried using printf("%'10d\n", 1123456789); but that …

c formatting numbers
Evaluating a string as a mathematical expression in JavaScript

How do I parse and evaluate a mathematical expression in a string (e.g. '1+1') without invoking eval(string) …

javascript string math numbers
Is there a way to convert number words to Integers?

I need to convert one into 1, two into 2 and so on. Is there a way to do this with a …

python string text integer numbers
Regex to match a digit two or four times

It's a simple question about regular expressions, but I'm not finding the answer. I want to determine whether a number …

regex numbers
Simplest way of getting the number of decimals in a number in JavaScript

Is there a better way of figuring out the number of decimals on a number than in my example? var …

javascript jquery numbers mootools decimal-point