Top "Decimal" questions

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

When should I use double instead of decimal?

I can name three advantages to using double (or float) instead of decimal: Uses less memory. Faster because floating point …

c# types floating-point double decimal
ValueError: invalid literal for int() with base 16: '\x0e\xa3' Python

I get bytes from the serial port which represents the voltage on my PIC board. But I can't convert these …

python string tkinter decimal pyserial
How to convert decimal to double in C#

I want to use a Track-Bar to change a Form's opacity. This is my code: decimal trans = trackBar1.Value / 5000; this.…

c# floating-point type-conversion double decimal
How to deal with big numbers in javascript

I'm looking for a Mathematical solution that deals with really (long, big, huge, storms) numbers. I haven't found anything yet, …

javascript floating-point decimal biginteger bignum
drop trailing zeros from decimal

I have a long list of Decimals and that I have to adjust by factors of 10, 100, 1000,..... 1000000 depending on certain conditions. …

python decimal
Forcing R output to be scientific notation with at most two decimals

I would like to have consistent output for a particular R script. In this case, I would like all numeric …

r decimal scientific-notation
Limit the amount of number shown after a decimal place in javascript

Hay, i have some floats like these 4.3455 2.768 3.67 and i want to display them like this 4.34 2.76 3.67 I don't want to round …

javascript floating-point decimal limit
In tableau, how do you modify the number of decimals of a percentage label?

In tableau, how do you modify the number of decimals of a percentage label? On bar charts, histograms, maps, etc.

formatting decimal tableau-api
C# decimal separator?

I have a method which returns numbers like this: public decimal GetNumber() { return 250.00m; } Now when this value is printed …

c# separator decimal
MySQL - How do I update the decimal column to allow more digits?

I'm a beginner in MySQL, and I accidentally created a table with a column named (price decimal(2,2)); It needs to …

mysql sql-update decimal alter-table