In my project, I need to convert price value (double/float) of some products to represent properly. If the value has any decimal value, it should show ...
In my project, I need to convert price value (double/float) of some products to represent properly. If the value has any decimal value, it should show ...
I am writing a class which handles formatting input text with given pattern. I am using android.icu.text.DecimalFormat and android.icu.text.DecimalFor ...
It returns me "NaN". How can I convert it to 2 decimals? Or I can´t convert numbers from api in js? If I try to put some fixed value, it works! But ...
I want to do calculations with numbers separated by thousands (comma), and the result will be formatted in thousands separated (comma) as well. Exampl ...
One of my column was havng value 0.0000000 it seems and it turns 0E-8 when am extracting data.ow to handle this.I have tried below commands in hive. ...
I have a textbox called UnitValue which should accept only 3 decimal values, that is 0.1, 0.2, 0.3. I am using data annotations on "UnitValue" proper ...
I have a requirement to turn keyboard digits input into amount as cents, for example: Typing 1 will output 0.01 Typing 10 will output 0.10 Typing 123 ...
output is: Is there any way where i can change 3E0 to just 3 without changing 1.934635E1? ...
. Answers to this question are eligible for a +50 reputation bounty. Kh ...
I am having some trouble trying to figure it out what is happening to me with the DecimalFormat. I have the following code: Where decimalSeparator ...
I found various posts solving the issue to change the y-axis from exponential back to a noraml decimal: avoid scientific notation x axis ggplot How ...
Here is my simplified code public void compute{ Scanner scan = new Scanner(System.in); double BUY=0; double RATE, AMOUNT; System.out.println("Ent ...
I am very new to SAS and want to create a simple dummy variable (MALE) that equals 1 if SEX = 1, and equals 0 if SEX = 2. However, I get error message ...
Hi i am working on angular13, here i need to allow user for both positive and negative decimal values to enter and it must limit to 2 decimal places a ...
I am using the following code to format the amount entered by user in EditText. But when I switch the phone language to dutch, the comma is convert ...
Pretty simple question but essentially I have a comparison where I want to return the modal value in a column. In some cases, I'm getting 0.50, and 0. ...
I have been assigned to edit a future value program and implement the decimal format. i have called the class but am having trouble figuring out where ...
Given 0.01835132889570552, the digits 1835 are significant (and might need to round up), and the digits 132889570552 are insignificant, so we don't wa ...
I'm aware of the many ways of formatting a double variable to X # of decimal places. With that being said: The code below is found at different loc ...
I am building a calculator with Kotlin and android studio (my first project). All equations were working properly until recent tweaks with decimal for ...