Top "Numbers" questions

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

Simplifying Fractions With java

Hey guys I am working on a SW here I am kinda in need of help, you see we need …

java numbers rational-number fractions
Get a random number focused on center

Is it possible to get a random number between 1-100 and keep the results mainly within the 40-60 range? I …

javascript algorithm random numbers
Adding two Negative Numbers using 2's Complement

I was wondering if someone could double check my work for me real quick. If I'm given two negative numbers: …

binary numbers theory twos-complement complement
How can I make the HTML5 number field display trailing zeroes?

I have a field: <input type='number' /> I'd like to punch in 0.50 without it “correcting it” to 0.5, so …

html input numbers decimal field
How can we decide the total no. of buckets for a hive table

i am bit new to hadoop. As per my knowledge buckets are fixed no. of partitions in hive table and …

hive numbers formula buckets
Toad truncating/rounding large Oracle numbers?

We have a table with a 'price' field of type NUMBER(20,7).. In TOAD I do this: update mytable set price = 1234567890123.1234567; …

oracle numbers toad
How to detect numbers in a string with PHP

This is the test.php file: <?php $string = 'A string with no numbers'; for ($i = 0; $i <= strlen($string)…

php numbers range detect
Javascript: Words to numbers

How can I convert words to numbers in JavaScript? Example: "Nineteen days from now" would become "19 days from now". I'm …

javascript numbers word
Display numbers up to two decimals places without trailing zeros

In my code I will be accepting multiple values, for example: 8.7456 8.7 8 and I need to have them appear as 8.74 8.7 8 i.…

javascript numbers parsefloat
How to ensure javascript addition instead of string concatenation (Not always adding integers)

Through my javascript library, I end up with a string that represents a number. Now I want to preform an …

javascript string numbers addition