Top "Numbers" questions

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

How do I tell if a variable has a numeric value in Perl?

Is there a simple way in Perl that will allow me to determine if a given variable is numeric? Something …

perl numbers
PHP remove commas from numeric strings

In PHP, I have an array of variables that are ALL strings. Some of the values stored are numeric strings …

php string replace numbers comma
Force decimal point instead of comma in HTML5 number input (client-side)

I have seen that some browsers localize the input type="number" notation of numbers. So now, in fields where my …

html google-chrome input numbers decimal
Remove/ truncate leading zeros by javascript/jquery

Suggest solution for removing or truncating leading zeros from number(any string) by javascript,jquery.

javascript jquery numbers zero
C: how to break apart a multi digit number into separate variables?

Say I have a multi-digit integer in C. I want to break it up into single-digit integers. 123 would turn into 1, 2, …

c math numbers digits digit
Fixed point vs Floating point number

I just can't understand fixed point and floating point numbers due to hard to read definitions about them all over …

numbers computer-science representation
Remove useless zero digits from decimals in PHP

I'm trying to find a fast way to remove zero decimals from number values like this: echo cleanNumber('125.00'); // 125 …

php numbers decimal
Format a number as 2.5K if a thousand or more, otherwise 900

I need to show a currency value in the format of 1K of equal to one thousand, or 1.1K, 1.2K, 1.9…

javascript jquery formatting numbers
Changing the sign of a number in PHP?

I have a few floats: -4.50 +6.25 -8.00 -1.75 How can I change all these to negative floats so they become: …

php math numbers sign