Top "Numbers" questions

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

Print all unique integer partitions given an integer as input

I was solving a programming exercise and came across a problem over which I am not able to satisfactorily find …

algorithm recursion numbers decomposition partition-problem
Calculations with Real Numbers, Verilog HDL

I noticed that Verilog rounds my real number results into integer results. For example when I look at simulator, it …

numbers verilog hdl real-datatype
Can I tell if a std::string represents a number using stringstream?

Apparently this is suposed to work in showing if a string is numerical, for example "12.5" == yes, "abc" == no. However I …

c++ numbers stringstream words
How to display Persian(Farsi) numbers in views

I want to display Persian(Farsi) numbers on views. For example I calculated a date and converted it to Jalali …

android fonts numbers persian farsi
Why is it that parseInt(8,3) == NaN and parseInt(16,3) == 1?

I'm reading this but I'm confused by what is written in the parseInt with a radix argument chapter Why is …

javascript numbers parseint radix
HTML5 input type=number and the placeholder attribute

Is there any way to use placeholder on <input type=number>?

html input numbers placeholder
java.lang.Number doesn't implement "+" or any other operators?

I'm creating a class which is supposed to be able to be used with an array of any type of …

java numbers operators add implements
How do I check if a string contains at least one number, letter, and character that is neither a number or letter?

The language is javascript. Strings that would pass: JavaScript1* Pu54 325 ()9c Strings that would not pass: 654fff %^(dFE I tried …

javascript regex string numbers letter
Generating all distinct partitions of a number

I am trying to write a C code to generate all possible partitions (into 2 or more parts) with distinct elements …

c algorithm recursion numbers decomposition
Java library to check whether a String contains a number *without* exceptions

I'm looking for a method that returns a boolean if the String it is passed is a valid number (e.…

java format numbers bigdecimal state-machine