Top "Decimal" questions

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

Counting the number of decimal places in pascal

I just started studying pascal and I have to do a pascal program as homework. I made it but I …

decimal pascal real-datatype
Decimal to octal in C

I have just begun teaching myself C out of K.N King's C Programming: A Modern Approach (2ndEdn). I'm enjoying …

c decimal octal
Rails: How to print a decimal as a percent?

Is there a way to print a decimal as a percentage, so only the two digits after the period? My …

ruby-on-rails ruby ruby-on-rails-4 decimal percentage
How can i detect if (float)0 == 0 or null in PHP

If variable value is 0 (float) it will pass all these tests: $test = round(0, 2); //$test=(float)0 if($test == null) echo "var …

php decimal detect zero
convert scientific notation to decimal in bash

I would like to convert a number that is stored in scientific notation into a floating point decimal, so I …

bash decimal notation arithmetic-expressions
Why is BCD = Decimal in PLC?

This question is derived from my previous SO question's commends. I am confused with PLC's interpretation of BCD and decimal. …

decimal plc bcd
Decimal values with thousand separator in Asp.Net MVC

I have a custom model class which contains a decimal member and a view to accept entry for this class. …

asp.net-mvc decimal defaultmodelbinder
Converting Decimal to Two's-Complement

Instructions: Convert these decimal numbers to 5-bit 2's-complement form, if possible. If not possible, explain why this is so. (16) base 10 …

binary decimal twos-complement ones-complement
ClosedXML: Working with percents, 1 decimal place and rounding?

I am attempting to use C# and ClosedXML to enter data into an excel sheet. I have found most of …

c# rounding decimal closedxml
Set decimal separator when using f:convertNumber

I want to know how to set the default decimal separator on my JSF application. I have some <h:…

jsf numbers decimal converter separator