# tagged [numbers]

#### How do I convert an integer to binary in JavaScript?

How do I convert an integer to binary in JavaScript? I’d like to see integers, positive or negative, in binary. Rather like [this question](https://stackoverflow.com/questions/5263187/how-can-i-print-...

- Modified
- 31 Aug at 07:32

#### How to extract numbers from a string in Python?

How to extract numbers from a string in Python? I would like to extract all the numbers contained in a string. Which is better suited for the purpose, regular expressions or the `isdigit()` method? Ex...

#### Letter after a number, what is it called?

Letter after a number, what is it called? What is this called? And where can I find a reference of characters I can use? If I want to cast `0` to `short`, which letter I need?

#### What is the meaning of number 1e5?

What is the meaning of number 1e5? I have seen in some codes that people define a variable and assign values like 1e-8 or 1e5. for example What are these numbers? I couldn't find any thing on the web....

- Modified
- 8 Sep at 21:13

#### How to Generate Unique Number of 8 digits?

How to Generate Unique Number of 8 digits? I am using this code to generate a 8 digit unique number. Does this code really generate a unique number or might it repeat the same number again?

#### Test if number is odd or even

Test if number is odd or even What is the simplest most basic way to find out if a number/variable is odd or even in PHP? Is it something to do with mod? I've tried a few scripts but.. google isn't de...

#### search text file using c# and display the line number and the complete line that contains the search keyword

search text file using c# and display the line number and the complete line that contains the search keyword I require help to search a text file (log file) using c# and display the line number and th...

- Modified
- 4 Apr at 17:33

#### How do I include negative decimal numbers in this regular expression?

How do I include negative decimal numbers in this regular expression? How do I match negative numbers as well by this regular expression? This regex works fine with positive values, but I want it to a...

#### Remove useless zero digits from decimals in PHP

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: Does exists some optimized way to do that?

#### Ideas about Generating Untraceable Invoice IDs

Ideas about Generating Untraceable Invoice IDs I want to print invoices for customers in my app. Each invoice has an . I want IDs to be: - - - Number of since a specific date & time (e.g. 1/1/2010 00...

- Modified
- 12 Aug at 06:47

#### Remove insignificant trailing zeros from a number?

Remove insignificant trailing zeros from a number? Have I missed a standard API call that removes trailing insignificant zeros from a number? `Number.toFixed()` and `Number.toPrecision()` are not quit...

- Modified
- 22 Sep at 07:42

#### What's the best way to convert a number to a string in JavaScript?

What's the best way to convert a number to a string in JavaScript? What's the "best" way to convert a number to a string (in terms of speed advantage, clarity advantage, memory advantage, etc) ? Some ...

- Modified
- 25 Feb at 01:16

#### php random x digit number

php random x digit number I need to create a random number with x amount of digits. So lets say x is 5, I need a number to be eg. 35562 If x is 3, then it would throw back something like; 463 Could so...

#### javascript onclick increment number

javascript onclick increment number With javascript, how can I do it so when i click a form button it adds 1 to a number? The number it increments could be in a form text field or something. Obviously...

- Modified
- 8 Feb at 00:48

#### Octal equivalent in C#

Octal equivalent in C# In C language octal number can be written by placing `0` before number e.g. I found the equivalent of hexadecimal in C# by placing `0x` before number e.g. Now my question is:

#### Fixed point vs Floating point number

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 Google. But none that I have read provide a simp...

- Modified
- 5 May at 17:1

#### How do I get the current line number?

How do I get the current line number? Here is an example of what I want to do: In the code above the `CurrentLineNumber`, should be the line number in the source code of this piece of code. How can I ...

- Modified
- 10 Feb at 13:13

#### Large Numbers in Java

Large Numbers in Java How would I go about doing calculations with extremely large numbers in Java? I have tried `long` but that maxes out at 9223372036854775807, and when using an integer it does not...

- Modified
- 10 Apr at 13:22

#### oracle varchar to number

oracle varchar to number How do i convert a oracle varchar value to number eg I would like to test the value of exception_value column

#### What is 0x10 in decimal?

What is 0x10 in decimal? I have the following code: `SN` is a string so this should give the 5th Char. Ok! Now I have another code but: `SN.get_Chars(0x10)` I wonder what 0x10 is? Is it a number? If i...

#### How to show number of a line in a RichTextBox C#

How to show number of a line in a RichTextBox C# I am making a simple text and script editor with code highlighting. For that I use a RichTextBox. But I don't know how to make it show the lines' numbe...

- Modified
- 2 Apr at 14:48

#### Making all numbers negative

Making all numbers negative I have a few floats: How can I change all these to negative floats so they become: Also I need a way to do the reverse If the float is a negative, make it a positive.

#### Show a number to two decimal places

Show a number to two decimal places What's the correct way to round a PHP string to two decimal places? The output should be `520.00`; How should the `round_to_2dp()` function definition be?

- Modified
- 7 Sep at 20:16

#### C/C++ line number

C/C++ line number In the sake of debugging purposes, can I get the line number in /C++ compilers? (standard way or specific ways for certain compilers) e.g

- Modified
- 24 Feb at 17:33

#### C# find biggest number

C# find biggest number It's the first time I am using c# so I am not very familiar with it. I would like to create a simple program to find the biggest number if I have the user entering 3 numbers. I ...