¡@

Home 

c# Programming Glossary: calculations

decimal vs double! - Which one should I use and when? [duplicate]

http://stackoverflow.com/questions/1165761/decimal-vs-double-which-one-should-i-use-and-when

use decimal. This includes any financial storage or calculations scores or other numbers that people might do by hand. If the..

Generics - where T is a number?

http://stackoverflow.com/questions/1267902/generics-where-t-is-a-number

a generic class for number types only for doing some calculations. Is there a common interface for all number types int double..

Reducing memory usage of .NET applications?

http://stackoverflow.com/questions/1343374/reducing-memory-usage-of-net-applications

the working set process memory and how to perform accurate calculations on your total in RAM consumption. I will not say that you should..

Is there a C# generic constraint for “real number” types? [duplicate]

http://stackoverflow.com/questions/1348594/is-there-a-c-sharp-generic-constraint-for-real-number-types

am I electing for a typeof T nightmare when it comes to calculations inside my classes weeding out bools strings objects etc Or worse.. check the type at runtime. That won't help you for doing calculations though. If you want to do calculations something like this would.. help you for doing calculations though. If you want to do calculations something like this would be an option class Calculations T..

How can I programatically create, read, write an excel without having office installed?

http://stackoverflow.com/questions/1369361/how-can-i-programatically-create-read-write-an-excel-without-having-office-ins

an app which will take an excel file as input do some calculations and create a new excel file which will basically be a modification..

Proper Use of yield return

http://stackoverflow.com/questions/410026/proper-use-of-yield-return

things this helps spread the computational cost of complex calculations over a larger time frame. For example if the list is hooked..

Integer summing blues, short += short problem

http://stackoverflow.com/questions/4343624/integer-summing-blues-short-short-problem

wraps around it is much more sensible to do all the calculations in int a type which is likely to have enough range for typical.. a type which is likely to have enough range for typical calculations to not overflow. The second question is short plus short is..

Is it safe to check floating point values for equality to 0 in C#/.NET?

http://stackoverflow.com/questions/485175/is-it-safe-to-check-floating-point-values-for-equality-to-0-in-c-net

in pure Mathematics is zero. This is because when calculations come into the ground floating point precision error appears..

Fixed point math in c#?

http://stackoverflow.com/questions/605124/fixed-point-math-in-c

sin and cos. That's the main issue. I'm also doing some calculations for line segment intersections line circle intersections circle..

Are floating-point numbers consistent in C#? Can they be?

http://stackoverflow.com/questions/6683059/are-floating-point-numbers-consistent-in-c-can-they-be

. That is they use 80 bit registers to do all the calculations then truncate to 64 or 32 bits leading to different rounding.. results than machines which use 64 or 32 bits for the calculations. I've seen several solutions to this problem online but all.. Disable double extended precision mode so that all double calculations use IEEE 754 64 bits using _controlfp_s Windows _FPU_SETCW Linux..

When should I use double instead of decimal?

http://stackoverflow.com/questions/803225/when-should-i-use-double-instead-of-decimal

not be used when precision is required such as financial calculations. So are there any practical reasons to ever choose double or.. base 10 numbers e.g. those used in currency financial calculations . In general the double type is going to offer at least as great.. theory be equivalent but were arrived at using different calculations you need to allow a certain degree of tolerance how much varies..

byte + byte = int… why?

http://stackoverflow.com/questions/941584/byte-byte-int-why

short A bit of background I am performing a long list of calculations on small numbers i.e. 8 and storing the intermediate results..