Top "Decimal-point" questions

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

Determine the decimal precision of an input number

We have an interesting problem were we need to determine the decimal precision of a users input (textbox). Essentially we …

c# decimal precision decimal-point
In Java, why does the decimal separator follow the Locale's language, not its country, and, more importantly, how does one override it?

I'm working on an international project and have observed that, in Java, the choice of the decimal separator is based …

java locale number-formatting decimal-point
Javascript restrict input once 2 decimal places have been reached

I currently have a number input script that behaves similar to a calculator with the way numbers are displayed, but …

javascript decimal-point
How to display a fixed number of digits in C++ without rounding

I have this code (very basic): #include <iostream> #include <iomanip> using namespace std; int main() { float …

c++ output decimal-point
how can i show an irrational number to 100 decimal places in python?

I am trying to find the square root of 2 to 100 decimal places, but it only shows to like 10 by default, …

python math decimal-point
Matlab: How to read in numbers with a comma as decimal separator?

I have a whole lot (hundreds of thousands) of rather large (>0.5MB) files, where data are numerical, but with …

matlab file-io decimal-point
Decimal point or decimal comma in Android

Is there an easy way to read back if the language set uses a decimal comma or a decimal point?

android decimal-point
In Perl, how can I limit the number of places after the decimal point but have no trailing zeroes?

This question is similar to "dropping trailing ‘.0’ from floats", but for Perl and with a maximum number of digits after …

perl printf decimal-point
How to calculate decimal digits of precision based on the number of bits?

I am learning about floating point formats (IEEE). In the single precision floating point format ,it is mentioned that the …

floating-point precision decimal-point
Limiting text field entry to only one decimal point

I have created a text field to enter an amount of money. I want the user to be able to …

objective-c uitextfield decimal-point