Top "Numbers" questions

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

Regex pattern for capital letters and numbers only, with possible 'List'

What is the regex to match words that have the pattern: Number or Capital in any order * 3 (+possible 'List' on …

regex numbers capitalization
Adding space between numbers

I'm trying to make a number input. I've made so my textbox only accepts numbers via this code: function isNumber(…

javascript html textbox numbers space
MySQL UPDATE with random number between 1-3

Got a big table and I want to add a column that has a randomly chosen number for each record. 1, 2, …

mysql random numbers between
Matching numbers with regular expressions — only digits and commas

I can't figure out how to construct a regex for the example values: 123,456,789 -12,34 1234 -8 Could you help me?

.net regex numbers matching
Sum all the digits of a number Javascript

I am newbie. I want to make small app which will calculate the sum of all the digits of a …

javascript numbers sum digits
How to write fraction value using html?

I want to write fraction value such as the picture below: How do I write fraction value using html without …

html numbers fractions
Ruby: Change negative number to positive number?

What's the simplest way of changing a negative number to positive with ruby? ie. Change "-300" to "300"

ruby math numbers
Is there a functionality in JavaScript to convert values into specific locale formats?

Is there a built in function of JavaScript to convert a string into a particular locale (Euro in my case)? …

javascript numbers currency
How to check if a number is included in a range (in one statement)?

I am using Ruby on Rails 3.0.9 and I would like to check if a number is included in a range. …

ruby-on-rails ruby ruby-on-rails-3 numbers range
Display numbers with ordinal suffix in PHP

I want to display numbers as follows 1 as 1st, 2 as 2nd, ..., 150 as 150th. How should I find the correct ordinal …

php numbers