Is super-accuracy matters?
|
10-24-2023, 03:46 PM
Post: #34
|
|||
|
|||
RE: Is super-accuracy matters?
(10-24-2023 01:33 PM)KeithB Wrote: Which is why Microsoft introduced the "decimal" type ... Also, in SQL Server / Transact SQL, the DECIMAL or NUMERIC type, which is very similar. I've always specified things like DECIMAL(19) for small monetary values and DECIMAL(29) for large ones, since that can handle values as large as a country's GNP, and can handle conversions between world currencies to an accuracy equivalent to any denomination. I've always wondered why T-SQL's "MONEY" and "SMALLMONEY" types have only two guard digits and not three. So I've been wary to use them. Am I mistaken -- aren't there cases where the lack of a third guard digit can cause an error to show up in the result? [Yes, this is now "Not [even] remotely HP Calculators" - LOL.] Daily drivers: 15c, 32sII, 35s, 41cx, 48g, WP 34s/31s. Favorite: 16c. Latest: 15ce, 48s, 50g. Gateway drug: 28s found in yard sale ~2009. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)