Top "Numbers" questions

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

Find the greatest number in a list of numbers

Is there any easy way or function to determine the greatest number in a python list? I could just code …

python numbers max
Get decimal portion of a number with JavaScript

I have float numbers like 3.2 and 1.6. I need to separate the number into the integer and decimal part. For example, …

javascript floating-point numbers decimal rounding
Check whether an input string contains a number in javascript

My end goal is to validate an input field. The input may be either alphabetic or numeric.

javascript string numbers validation
How to convert a negative number to positive?

How can I convert a negative number to positive in Python? (And keep a positive one.)

python numbers absolute-value
How to zero pad a sequence of integers in bash so that all have the same width?

I need to loop some values, for i in $(seq $first $last) do does something here done For $first and $…

bash numbers padding
How can I check if my python object is a number?

In Java the numeric types all descend from Number so I would use (x instanceof Number). What is the python …

python types numbers
how to display a javascript var in html body

I am looking for a way to call a javascript number in the body of an html page. This does …

javascript html numbers var
Phone: numeric keyboard for text input

Is there a way to force the number keyboard to come up on the phone for an <input type="…

android ios keyboard numbers html-input
How can I format a String number to have commas and round?

What is the best way to format the following number that is given to me as a String? String number = "1000500000.574" //…

java string numbers decimal number-formatting
Convert boolean result into number/integer

I have a variable that stores false or true, but I need 0 or 1 instead, respectively. How can I do this?

javascript numbers integer boolean type-conversion