Top "Decimal" questions

Decimal is the name for our common base-ten numeral system.

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
Decimal to Hexadecimal Converter in Java

I have a homework assignment where I need to do three-way conversion between decimal, binary and hexadecimal. The function I …

java hex decimal converter
Calculating bits required to store decimal number

This is a homework question that I am stuck with. Consider unsigned integer representation. How many bits will be required …

decimal unsigned unsigned-integer
getch and arrow codes

I'm writing a programm that's using getch() to scan for arrow keys. My code so far is: switch(getch()) { case 65: // …

c character decimal arrow-keys getch
Converting double to string with N decimals, dot as decimal separator, and no thousand separator

I need to convert a decimal to a string with N decimals (two or four) and NO thousand separator: 'XXXXXXX (…

c# .net string double decimal
String to decimal conversion: dot separation instead of comma

I have a string read from a textbox. It contains a comma for decimal separation. I have NumberFormatInfo.CurrencyDecimalSeparator set …

c# decimal
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
What are the parameters for the number Pipe - Angular 2

I have used the number pipe below to limit numbers to two decimal places. {{ exampleNumber | number : '1.2-2' }} I …

angular pipe decimal
How can I format decimal property to currency?

I want to format a decimal value as a currency value. How can I do this?

c# decimal currency
Truncate/round whole number in JavaScript?

For a script I'm writing, I need display a number that has been rounded, but not the decimal or anything …

javascript decimal rounding