¡@

Home 

c# Programming Glossary: precision

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

in C#. I know I read somewhere that doubles sometimes lose precision. My question is when should a use a double and when should I..

String output: format or concat in C#?

http://stackoverflow.com/questions/16432/string-output-format-or-concat-in-c

loop and stopping it right after this way I'm not losing precision if the function takes for example 26.4 ticks to execute. 3...

Big integers in C#

http://stackoverflow.com/questions/176775/big-integers-in-c-sharp

4.0 Until then look at IntX class. IntX is an arbitrary precision integers library written in pure C# 2.0 with fast O N log N..

Validate image from file in C#

http://stackoverflow.com/questions/210650/validate-image-from-file-in-c-sharp

1 2 or 3. That would at least give you slightly more precision. Or you can just trap the exception and move on but I thought..

Is DateTime.Now the best way to measure a function's performance?

http://stackoverflow.com/questions/28637/is-datetime-now-the-best-way-to-measure-a-functions-performance

Stopwatch automatically checks for the existence of high precision timers. It is worth mentioning that DateTime.Now often is quite.. of 15 ms. See John Chapman's blog post about DateTime.Now precision for a great summary. Interesting trivia The stopwatch falls.. check to see if Stopwatch uses hardware to achieve high precision by looking at the static field Stopwatch.IsHighResolution ...

Performance differences between debug and release builds

http://stackoverflow.com/questions/4043821/performance-differences-between-debug-and-release-builds

point calculation are kept in a FPU register at 80 bit precision instead of getting truncated when flushed to memory. share..

What is the difference between const and readonly?

http://stackoverflow.com/questions/55984/what-is-the-difference-between-const-and-readonly

100 But if you have a constant that may change e.g. w.r.t. precision .. or when in doubt use a readonly. public readonly float PI..

Double precision problems on .NET

http://stackoverflow.com/questions/566958/double-precision-problems-on-net

precision problems on .NET I have a simple C# function public static.. or equal to value that is multiple of step . But it lacks precision as seen in the following tests TestMethod public void FloorTest.. of the 6th maybe because Math.Round introduces some imprecision. Note In my test code I wrote the F suffix explicit float constant..

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

because some processors namely x86 use double extended precision . That is they use 80 bit registers to do all the calculations.. online but all for C not C# Disable double extended precision mode so that all double calculations use IEEE 754 64 bits using.. there any way to force my program to run at normal double precision If not are there any libraries that would help keep floating..

Why is floating point arithmetic in C# imprecise?

http://stackoverflow.com/questions/753948/why-is-floating-point-arithmetic-in-c-sharp-imprecise

this question Floating point only has so many digits of precision. If you're seeing f1 f2 it is because any difference requires.. seeing f1 f2 it is because any difference requires more precision than a 32 bit float can represent. I recommend reading What..

When should I use double instead of decimal?

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

software. Of course doubles should not be used when precision is required such as financial calculations. So are there any.. the double type is going to offer at least as great precision someone correct me if I'm wrong and definitely greater speed.. operations this is a slightly more subtle issue. Indeed precision I use the term interchangeably for accuracy here will steadily..