Top "Decimal" questions

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

Hot to get user’s regional settings for currency in JavaScript or jQuery?

I’m trying to format some numbers with jQuery. I would like to get the user’s regional settings for …

javascript jquery decimal currency-formatting regional-settings
How to specify decimal precision in a simple_form number field (Rails)

So I have a decimal field with precision 2 in the database, meant to be used for currency. It works fine …

ruby-on-rails decimal simple-form
Rails: Cannot add :precision or :scale options with change_column in a migration?

This seems to have been asked before: rails decimal precision and scale But when running a change_column migration for :…

ruby-on-rails migration decimal precision scale
SQL server integer vs decimal SUM

This is probably a newb question but...I was working on a db in SQSH and it had integer type …

sql sql-server integer decimal sqsh
use decimal values as attribute params in c#?

I've been trying to use decimal values as params for a field attribute but I get a compiler error. I …

c# parameters attributes decimal
Why does Convert.ToInt32() round to the nearest even number, instead of nearest whole number?

Looking at the msdn documentation for Convert.ToInt32() it states: If value is halfway between two whole numbers, the even …

c# decimal rounding int32
In a currency exchange rate what is the maximum number of decimal places used?

I need to store currency exchange rate data in the SQL 2008 database. I would like to keep rate as a …

sql tsql decimal currency currency-exchange-rates
Convert decimal number to minutes and seconds using VBA

I have time represented by a decimal number that I need to convert to minutes and seconds in Excel using …

vba time decimal seconds
Regex a decimal number with comma

I'm heaving trouble finding the right regex for decimal numbers which include the comma separator. I did find a few …

regex decimal comma
xsd pattern acceptable for decimals?

We have a request to implement our webservice response so that xsd:decimal fraction digits will be zero-padded when it's …

xsd design-patterns decimal pad