Top "Decimal-point" questions

The character or glyph used to separate the integer part from the fraction part in a decimal number.

Cast int to float, two decimal values in PHP

Possible Duplicate: PHP: show a number to 2 decimal places How do I cast an integer, let's say $i=50 to a …

php casting integer decimal-point
printing a variable value to 2 decimal places

I am trying to create a currency converter that prints a final value out to 2 decimal places. I have created …

python decimal-point
Replace dot(.) with comma(,) using RegEx?

I am working on a C# application. I want to change number decimal figure with comma(,) where i have dot(.) …

c# .net regex cultureinfo decimal-point
How to properly display a price up to two decimals (cents) including trailing zeros in Java?

There is a good question on rounding decimals in Java here. But I was wondering how can I include the …

java double rounding decimal-point
How to find 10's complement of decimal number

Whats the 10's complement of 1056.074? Please check the solution: 9999.999 - 1056.074 = 8943.925 (9's complement of 1056.074) Now 1 is added to .074 or 8943?

math decimal decimal-point complement number-systems
Python, Determine if a string should be converted into Int or Float

I want to convert a string to the tightest possible datatype: int or float. I have two strings: value1="0.80" #this …

python type-conversion decimal-point
Format a number containing a decimal point with leading zeroes

I want to format a number with a decimal point in it with leading zeros. This >>> '3.3…

python string-formatting decimal-point
How can I limit the number of decimal points in a UITextField?

I have a UITextField that when clicked brings up a number pad with a decimal point in the bottom left. …

ios uitextfield decimal-point
Python - random float with limited decimal digits

I just found out how to make random numbers in Python, but if I print them out, they all have 15 …

python random decimal-point
How can I set the decimal separator to be a comma?

I would like to read and write pi as 3,141592 instead of 3.141592, as using the comma is common in many European …

c++ formatting iostream comma decimal-point