Top "Numbers" questions

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

How do I find the difference between two values without knowing which is larger?

I was wondering if there was a function built into Python that can determine the distance between two rational numbers …

python function numbers distance
Java: How to split a string by a number of characters?

I tried to search online to solve this question but I didn't found anything. I wrote the following abstract code …

java string split numbers character
Styling HTML5 input type number

I'm writing a form in HTML5. One of the inputs is type=number. I want the input to only show 2 …

html input styles numbers
How to Generate a random number of fixed length using JavaScript?

I'm trying to generate a random number that must have a fixed length of exactly 6 digits. I don't know if …

javascript random numbers
How to take off line numbers in Vi?

For displaying line numbers in a file, I use command: set numbers What is the command to clear line numbers …

editor numbers vi
Input type "number" won't resize

Why won't my input resize when I change the type to type="number" but it works with type="text"? EXAMPLE …

html text input resize numbers
add commas to a number in jQuery

I have these numbers 10999 and 8094 and 456 And all i want to do is add a comma in the right place …

javascript jquery formatting numbers
Show a leading zero if a number is less than 10

Possible Duplicate: JavaScript equivalent to printf/string.format How can I create a Zerofilled value using JavaScript? I have a …

javascript math numbers digits
Convert Java Number to BigDecimal : best way

I am looking for the best way to convert a Number to a BigDecimal. Is this good enough? Number number; …

java numbers precision bigdecimal
Format file size as MB, GB, etc

I need to display a file size as a string using sensible units. For example, 1L ==> "1 B"; 1024L ==> "1 …

java string format numbers