Top "Numbers" questions

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

Math - mapping numbers

How do I map numbers, linearly, between a and b to go between c and d. That is, I want …

math numbers mapping interpolation linear-algebra
Format a number with leading sign

How do I format in Java a number with its leading sign? Negative numbers are correctly displayed with leading -, …

java formatting numbers currency
Algorithm to find all the exact divisors of a given integer

I want to find all the exact divisors of a number. Currently I have this: { int n; int i=2; scanf("%…

c algorithm numbers performance factors
How to convert floats to human-readable fractions?

Let's say we have 0.33, we need to output 1/3. If we have 0.4, we need to output 2/5. The idea is to make …

algorithm language-agnostic numbers
Python: Variance of a list of defined numbers

I am trying to make a function that prints the variance of a list of defined numbers: grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5] So far, …

python list numbers variance defined
How to convert a String containing Scientific Notation to correct Javascript number format

I have a String e.g: "4.874915326E7". What is the best way to convert it to a javascript number format? (…

javascript string numbers format
How to count number of digit included zero in php

I am working to count number of digit in PHP. I just want to count number of digit value for …

php count numbers counting
Change jquery datatables default row count shown

By default, datatables has 4 sizes of records to show: 10,25,50,100. A) Is there a way to change this? I tried editing …

jquery numbers datatables rows
Generating a list of EVEN numbers in Python

Basically I need help in generating even numbers from a list that I have created in Python: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, ...] I have tried …

python numbers fibonacci
Comparing the values of two generic Numbers

I want to compare to variables, both of type T extends Number. Now I want to know which of the …

java generics numbers comparable